]> mj.ucw.cz Git - libucw.git/commitdiff
Oops, a memory leak in the presorter.
authorMartin Mares <mj@ucw.cz>
Wed, 17 Jul 2002 02:34:43 +0000 (02:34 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 17 Jul 2002 02:34:43 +0000 (02:34 +0000)
lib/sorter.h

index bf0e5b962ab937fb0b291f968383b4557aec7d1d..6ce1a6c8a42bb0671df7f4ec641793f83db236db 100644 (file)
@@ -345,6 +345,7 @@ P(presort)(struct fastbuf **fb1, struct fastbuf **fb2)
        (out2 ? (int)((btell(out2) + 1023) / 1024) : 0));
   *fb1 = P(flush_out)(out1);
   *fb2 = P(flush_out)(out2);
+  xfree(buffer);
 }
 
 #endif         /* SORT_PRESORT */