default_level = DEBUGLEVEL_CLASS[DBGC_ALL];
- new_class_list = talloc_realloc(NULL, new_class_list, int, ndx + 1);
+ new_class_list = talloc_realloc(talloc_autofree_context(), new_class_list, int, ndx + 1);
if (!new_class_list)
return -1;
DEBUGLEVEL_CLASS = new_class_list;
DEBUGLEVEL_CLASS[ndx] = default_level;
- new_name_list = talloc_realloc(NULL, classname_table, char *, ndx + 1);
+ new_name_list = talloc_realloc(talloc_autofree_context(), classname_table, char *, ndx + 1);
if (!new_name_list)
return -1;
classname_table = new_name_list;
return;
}
TALLOC_FREE(state.debugf);
- state.debugf = talloc_strdup(NULL, name);
+ state.debugf = talloc_strdup(talloc_autofree_context(), name);
}
static void debug_close_fd(int fd)