diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/csplit.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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 diff --git a/src/csplit.c b/src/csplit.c index e174ee59e..382fd6621 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -526,6 +526,8 @@ load_buffer (void) if (lines_found) save_buffer (b); + else + free (b); return lines_found != 0; } |