@@ -157,13 +157,13 @@ int cmd_main(int argc UNUSED, const char *argv[] UNUSED)
157
157
158
158
old_alloc = alloc ;
159
159
old_arr = arr ;
160
- reftable_set_alloc (malloc , realloc_stub , free );
160
+ reftable_set_alloc (NULL , realloc_stub , NULL );
161
161
check (REFTABLE_ALLOC_GROW (arr , old_alloc + 1 , alloc ));
162
162
check (arr == old_arr );
163
163
check_uint (alloc , = = , old_alloc );
164
164
165
165
old_alloc = alloc ;
166
- reftable_set_alloc (malloc , realloc , free );
166
+ reftable_set_alloc (NULL , NULL , NULL );
167
167
check (!REFTABLE_ALLOC_GROW (arr , old_alloc + 1 , alloc ));
168
168
check (arr != NULL );
169
169
check_uint (alloc , > , old_alloc );
@@ -188,11 +188,11 @@ int cmd_main(int argc UNUSED, const char *argv[] UNUSED)
188
188
arr [alloc - 1 ] = 42 ;
189
189
190
190
old_alloc = alloc ;
191
- reftable_set_alloc (malloc , realloc_stub , free );
191
+ reftable_set_alloc (NULL , realloc_stub , NULL );
192
192
REFTABLE_ALLOC_GROW_OR_NULL (arr , old_alloc + 1 , alloc );
193
193
check (arr == NULL );
194
194
check_uint (alloc , = = , 0 );
195
- reftable_set_alloc (malloc , realloc , free );
195
+ reftable_set_alloc (NULL , NULL , NULL );
196
196
197
197
reftable_free (arr );
198
198
}
0 commit comments