diff --git a/main/dial.c b/main/dial.c index 26ffc1375aa60cefcdaf01fd8f9b0a1e38aef6df..1fd5bfe81ee5f1d08a68a8d15aa5aad0bea05202 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;