* src/csplit.c (load_buffer): Plug an inconsequential leak.
authorJim Meyering <jim@meyering.net>
Thu, 16 Nov 2006 08:16:08 +0000 (09:16 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 16 Nov 2006 08:16:08 +0000 (09:16 +0100)
ChangeLog
src/csplit.c

index 9bdf549fcb7863a2ab0ad5e0365aa9e856c1499b..209ff960c8a7fd4caee4674faaee25b07c793a88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
        so we need not free them at all.  This is easier than freeing
        both buffers at each of the early "return"s.
 
+       * src/csplit.c (load_buffer): Plug an inconsequential leak.
+
 2006-11-15  Jim Meyering  <jim@meyering.net>
 
        * .x-po-check: Exclude gl/ files.  Otherwise, po-check would
index e174ee59ed7157ec87b2513a17eb6fa70bbcef67..382fd6621476f5c39bba8b864ec08db46ae44b85 100644 (file)
@@ -526,6 +526,8 @@ load_buffer (void)
 
   if (lines_found)
     save_buffer (b);
+  else
+    free (b);
 
   return lines_found != 0;
 }