mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
* bcache.c (free_bcache): Do not free NULL.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user