summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--stdio-common/bug1.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 62085baeef..d691a5598a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 1999-07-15  Ulrich Drepper  <drepper@cygnus.com>
 
+	* stdio-common/bug1.c: Avoid memory leak.
+
 	* sysdeps/i386/fpu/e_pow.S: Use addl instead of pop/pop to keep
 	program deterministic.
 	* sysdeps/i386/fpu/e_powf.S: Likewise.
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;
 }