diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-19 07:08:35 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-19 07:08:35 +0000 |
commit | df02e9ed85c7f26e0d9c992225ccaab124939f0d (patch) | |
tree | da11c4b1042310bc171dea8e94b1fbd0ad0593d1 /gdb/bcache.c | |
parent | 9debab2f37e9afe2b5fa4e387f4f5f33f0e72421 (diff) | |
download | gdb-df02e9ed85c7f26e0d9c992225ccaab124939f0d.zip gdb-df02e9ed85c7f26e0d9c992225ccaab124939f0d.tar.gz gdb-df02e9ed85c7f26e0d9c992225ccaab124939f0d.tar.bz2 |
* bcache.c (free_bcache): Do not free NULL.
Diffstat (limited to 'gdb/bcache.c')
-rw-r--r-- | gdb/bcache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/bcache.c b/gdb/bcache.c index 766aff9..96c01ba 100644 --- 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. */ |