* bcache.c (free_bcache): Do not free NULL.
This commit is contained in:
parent
9debab2f37
commit
df02e9ed85
@ -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.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user