aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/global_datastores.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/global_datastores.c b/main/global_datastores.c
index 340e71de1..8afe55a66 100644
--- a/main/global_datastores.c
+++ b/main/global_datastores.c
@@ -61,6 +61,7 @@ static void *dialed_interface_duplicate(void *data)
struct ast_dialed_interface *di2 = ast_calloc(1, sizeof(*di2) + strlen(di->interface));
if(!di2) {
AST_LIST_UNLOCK(old_list);
+ dialed_interface_destroy(new_list);
return NULL;
}
strcpy(di2->interface, di->interface);