Package: fdupes
Version: 1.50-PR2-2
Severity: normal
Tags: patch

Hello,

I've found some leaks using valgrind on my music collection.
You can easily fix them by changing a bit the end of the main
function :

 while (files) {
      curfile = files->next;
      free(files->d_name);
    + free(files->crcsignature);
    + free(files->crcpartial);
      free(files);
      files = curfile;
 }

 + for (x = 0; x < argc; x++)
    + free(oldargv[x]);
+ free(oldargv);

I've contacted the author upstream one month ago, but i didn't have an
answer, yet.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (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/dash

Versions of packages fdupes depends on:
ii  libc6                         2.9-25     GNU C Library: Shared libraries

fdupes recommends no packages.

fdupes suggests no packages.

-- no debconf information
--- fdupes.c    2007-04-08 04:53:24.000000000 +0200
+++ /home/jbd/tmp/fdupes-1.50-PR2/fdupes.c      2009-08-01 00:38:37.000000000 
+0200
@@ -1173,10 +1173,17 @@
   while (files) {
     curfile = files->next;
     free(files->d_name);
+    free(files->crcsignature);
+    free(files->crcpartial);
     free(files);
     files = curfile;
   }
-  
+
+  for (x = 0; x < argc; x++)
+    free(oldargv[x]);
+
+  free(oldargv);
+
   purgetree(checktree);
 
   return 0;

Reply via email to