about summary refs log tree commit diff
path: root/stdio-common/bug1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-15 18:45:14 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-15 18:45:14 +0000
commit9c6f68cdc9aa83deb3b7d4505e30ba37055b8aec (patch)
tree68ddeb1bc89296acd80175e0e57aa7c171d5668a /stdio-common/bug1.c
parentaff6dc6cff1c12744e98001be0c8018936b00004 (diff)
downloadglibc-9c6f68cdc9aa83deb3b7d4505e30ba37055b8aec.tar.gz
glibc-9c6f68cdc9aa83deb3b7d4505e30ba37055b8aec.tar.xz
glibc-9c6f68cdc9aa83deb3b7d4505e30ba37055b8aec.zip
Update.
	* stdio-common/bug1.c: Avoid memory leak.
Diffstat (limited to 'stdio-common/bug1.c')
-rw-r--r--stdio-common/bug1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdio-common/bug1.c b/stdio-common/bug1.c
index 51639d3476..468be5ca22 100644
--- a/stdio-common/bug1.c
+++ b/stdio-common/bug1.c
@@ -23,5 +23,7 @@ main (void)
 
   puts (lose ? "Test FAILED!" : "Test succeeded.");
 
+  free (bp);
+
   return lose;
 }