From: Jim Meyering Date: Thu, 16 Nov 2006 08:16:08 +0000 (+0100) Subject: * src/csplit.c (load_buffer): Plug an inconsequential leak. X-Git-Tag: COREUTILS-6_5~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6b438c45dbc5dab7b2d62ae464942e6927b1d17;p=thirdparty%2Fcoreutils.git * src/csplit.c (load_buffer): Plug an inconsequential leak. --- diff --git a/ChangeLog b/ChangeLog index 9bdf549fcb..209ff960c8 100644 --- 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 * .x-po-check: Exclude gl/ files. Otherwise, po-check would diff --git a/src/csplit.c b/src/csplit.c index e174ee59ed..382fd66214 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; }