diff options
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -377,8 +377,7 @@ void object_array_clear(struct object_array *array) int i; for (i = 0; i < array->nr; i++) object_array_release_entry(&array->objects[i]); - free(array->objects); - array->objects = NULL; + FREE_AND_NULL(array->objects); array->nr = array->alloc = 0; } |