summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/dial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/dial.c b/main/dial.c
index 26ffc1375..1fd5bfe81 100644
--- a/main/dial.c
+++ b/main/dial.c
@@ -814,7 +814,7 @@ int ast_dial_destroy(struct ast_dial *dial)
/* Free structure */
ast_free(channel->tech);
ast_free(channel->device);
- AST_LIST_REMOVE_CURRENT(&dial->channels, list);
+ AST_LIST_REMOVE_CURRENT(list);
ast_free(channel);
}
AST_LIST_TRAVERSE_SAFE_END;