Package: libimlib2-dev Version: 1.4.2-5 Severity: normal *** Please type your report below this line *** If you write a program using imlib_load_image() or similar functions, you will notice a memleak when you run the program in valgrind. imlib_load_image calls imlib_context_push and imlib_context_new in /usr/lib/libImlib2.so.1.4.2 which do a malloc but never free the memory. The following is a example program that has this problem: #include <Imlib2.h> int main(int argc, char **argv) { Imlib_Image image = imlib_load_image("foo.png"); imlib_context_set_image(image); imlib_free_image_and_decache(); imlib_flush_loaders(); return 0; } /* Make sure there is a picture foo.png in the current dir. Compile and run the program with: gcc -g3 -O0 -lImlib2 main.c valgrind --leak-check=full --show-reachable=yes ./a.out */
-- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libimlib2-dev depends on: ii libc6-dev 2.10.1-7 GNU C Library: Development Librari ii libfreetype6-dev 2.3.11-1 FreeType 2 font engine, developmen ii libgif-dev 4.1.6-8 library for GIF images (developmen ii libimlib2 1.4.2-5 powerful image loading and renderi ii libjpeg62-dev 6b-15 Development files for the IJG JPEG ii libltdl-dev [libltdl3- 2.2.6a-4 A system independent dlopen wrappe ii libpng12-dev 1.2.40-1 PNG library - development ii libtiff4-dev 3.9.2-1 Tag Image File Format library (TIF ii libx11-dev 2:1.2.2-1 X11 client-side library (developme ii libxext-dev 2:1.0.4-1 X11 miscellaneous extensions libra ii zlib1g-dev 1:1.2.3.3.dfsg-15 compression library - development libimlib2-dev recommends no packages. libimlib2-dev suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org