aboutsummaryrefslogtreecommitdiff
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
parentaff6dc6cff1c12744e98001be0c8018936b00004 (diff)
downloadglibc-9c6f68cdc9aa83deb3b7d4505e30ba37055b8aec.zip
glibc-9c6f68cdc9aa83deb3b7d4505e30ba37055b8aec.tar.gz
glibc-9c6f68cdc9aa83deb3b7d4505e30ba37055b8aec.tar.bz2
Update.
* stdio-common/bug1.c: Avoid memory leak.
-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 62085ba..d691a55 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 51639d3..468be5c 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;
}