projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9debab2
)
* bcache.c (free_bcache): Do not free NULL.
author
Andrew Cagney
<cagney@redhat.com>
Wed, 19 Apr 2000 07:08:35 +0000
(07:08 +0000)
committer
Andrew Cagney
<cagney@redhat.com>
Wed, 19 Apr 2000 07:08:35 +0000
(07:08 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/bcache.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index f17ed0782c96ababa46365747a268469b9ebc43b..141a1f0aaaabe00fc32d107fb973f8a85a955296 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,8
@@
+Wed Apr 19 17:03:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ From Philippe De Muyter <phdm@macqel.be>:
+ * bcache.c (free_bcache): Do not free NULL.
+
Wed Apr 19 16:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
* TODO: Cleanup.
diff --git
a/gdb/bcache.c
b/gdb/bcache.c
index 766aff9c3bb8be82ef315559f549e74741e06b41..96c01ba4655b1ab5a0e5509469fc8bb78e6d6870 100644
(file)
--- a/
gdb/bcache.c
+++ b/
gdb/bcache.c
@@
-189,7
+189,8
@@
void
free_bcache (struct bcache *bcache)
{
obstack_free (&bcache->cache, 0);
- free (bcache->bucket);
+ if (bcache->bucket)
+ free (bcache->bucket);
/* This isn't necessary, but at least the bcache is always in a
consistent state. */