diff --git a/config.c b/config.c index 616bb657ed..4b3c79bf12 100644 --- a/config.c +++ b/config.c @@ -301,6 +301,7 @@ struct ast_variable *ast_category_detach_variables(struct ast_category *cat) v = cat->root; cat->root = NULL; + cat->last = NULL; return v; }