]> mj.ucw.cz Git - libucw.git/commitdiff
fixed another bug with mixed HASH_GIVE_ALLOC and HASH_TABLE_ALLOC
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Mon, 23 Apr 2007 14:19:58 +0000 (16:19 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Mon, 23 Apr 2007 14:19:58 +0000 (16:19 +0200)
lib/hashtable.h

index f57412b70a103120c519749f8a2d95b876af4b03..4dc223fec61b4c0f31adbdfb310d11dfb2dde8c2 100644 (file)
@@ -350,7 +350,7 @@ static inline void P(cleanup_alloc) (TAU) { }
 
 #ifdef HASH_TABLE_ALLOC
 static inline void * P(table_alloc) (TAUC unsigned int size) { return P(alloc)(TTC size); }
-static inline void P(table_free) (TAUC void *x) { P(free)(x); }
+static inline void P(table_free) (TAUC void *x) { P(free)(TTC x); }
 #else
 static inline void * P(table_alloc) (TAUC unsigned int size) { return xmalloc(size); }
 static inline void P(table_free) (TAUC void *x) { xfree(x); }