[Pkg-xfce-devel] Bug#420759: orageclock plugin leaks memory
Jason Kraftcheck
kraftche at cae.wisc.edu
Tue Apr 24 14:27:41 UTC 2007
Package: orage
Version: 4.3.99.1-1
Severity: grave
Justification: renders package unusable
orageclock panel plugin in Debian stable leaks memory every time
it updates the time.
--- orage-4.3.99.1/panel-plugin/orageclock.c 2006-09-02 10:55:11.000000000 -0500
+++ orage-mod/panel-plugin/orageclock.c 2007-04-18 15:59:20.000000000 -0500
@@ -96,9 +96,9 @@
for (i = 0; i < OC_MAX_LINES; i++) {
line = &clock->line[i];
if (line->show) {
- strftime(time_s, sizeof(time_s)
- , g_locale_from_utf8(line->data->str, -1, NULL, NULL, NULL)
- , &clock->now);
+ gchar* locstr = g_locale_from_utf8(line->data->str, -1, NULL, NULL, NULL);
+ strftime(time_s, sizeof(time_s), locstr, &clock->now);
+ g_free(locstr);
if (!g_utf8_validate(time_s, -1, NULL)) {
utf8time_s = g_locale_to_utf8(time_s, -1, NULL, NULL, NULL);
if (utf8time_s) {
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages orage depends on:
ii libatk1.0-0 1.12.4-3 The ATK accessibility toolkit
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libcairo2 1.2.4-4 The Cairo 2D vector graphics libra
ii libfontconfig1 2.4.2-1.2 generic font configuration library
ii libfreetype6 2.2.1-5 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.12.4-2 The GLib library of C routines
ii libgtk2.0-0 2.8.20-7 The GTK+ graphical user interface
ii libpango1.0-0 1.14.8-5 Layout and rendering of internatio
ii libpng12-0 1.2.15~beta5-1 PNG library - runtime
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxcursor1 1.1.7-4 X cursor management library
ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar
ii libxfce4mcs-client3 4.3.99.2-1 Client library for Xfce4 configure
ii libxfce4util4 4.3.99.2-1 Utility functions library for Xfce
ii libxfcegui4-4 4.3.99.2-1 Basic GUI C functions for Xfce4
ii libxfixes3 1:4.0.1-5 X11 miscellaneous 'fixes' extensio
ii libxi6 1:1.0.1-4 X11 Input extension library
ii libxinerama1 1:1.0.1-4.1 X11 Xinerama extension library
ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library
ii libxrender1 1:0.9.1-3 X Rendering Extension client libra
ii xfce4-panel 4.3.99.2-2 The Xfce4 desktop environment pane
ii zlib1g 1:1.2.3-13 compression library - runtime
orage recommends no packages.
-- no debconf information
More information about the Pkg-xfce-devel
mailing list