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 | ecae7c1387cb5914fe4fe2505da0c55e94340e27 (patch) | |
tree | 3aadccf55d5d994e798f45e920a7eb85390545e1 /gdb/bcache.c | |
parent | 15d8e49da893ed0b669884c6b6b81b8e76651fdd (diff) | |
download | gdb-ecae7c1387cb5914fe4fe2505da0c55e94340e27.tar.gz |
* 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 766aff9c3bb..96c01ba4655 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. */ |