pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-04-27
2014-04-27 18:31:29 by Martin Nilsson <nilsson@opera.com>
0ec752ef450dbf541fd9c208bd4e388e4a5efc1c (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
8.0
Free takes void* and doesn't need any cast anymore.
622:
rehash_string_backwards(old_base[h]); if(old_base)
-
free(
(char *)
old_base);
+
free(old_base);
#ifdef PIKE_RUN_UNLOCKED for(h=0;h<BUCKET_LOCKS;h++) mt_unlock(bucket_locks + h);
653:
if (s->flags & STRING_IS_SHORT) { \ ba_free(&string_allocator, s); \ } else { \
-
debug_free(
(char *)
s, DMALLOC_LOCATION(), 1); \
+
debug_free(s, DMALLOC_LOCATION(), 1); \
} \ } while(0)
2293:
base_table[e]=0; UNLOCK_BUCKET(e); }
-
free(
(char *)
base_table);
+
free(base_table);
base_table=0; num_strings=0;