diff options
Diffstat (limited to 'gdb/bcache.c')
-rw-r--r-- | gdb/bcache.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/bcache.c b/gdb/bcache.c index b1d9de8..cadadb5 100644 --- a/gdb/bcache.c +++ b/gdb/bcache.c @@ -266,7 +266,10 @@ bcache_xmalloc (void) { /* Allocate the bcache pre-zeroed. */ struct bcache *b = XCALLOC (1, struct bcache); - obstack_specify_allocation (&b->cache, 0, 0, xmalloc, xfree); + /* We could use obstack_specify_allocation here instead, but + gdb_obstack.h specifies the allocation/deallocation + functions. */ + obstack_init (&b->cache); return b; } |