projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc9b802
)
* src/csplit.c (load_buffer): Plug an inconsequential leak.
author
Jim Meyering
<jim@meyering.net>
Thu, 16 Nov 2006 08:16:08 +0000
(09:16 +0100)
committer
Jim Meyering
<jim@meyering.net>
Thu, 16 Nov 2006 08:16:08 +0000
(09:16 +0100)
ChangeLog
patch
|
blob
|
history
src/csplit.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
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
diff --git
a/src/csplit.c
b/src/csplit.c
index e174ee59ed7157ec87b2513a17eb6fa70bbcef67..382fd6621476f5c39bba8b864ec08db46ae44b85 100644
(file)
--- 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;
}