diff --git a/apps/app_queue.c b/apps/app_queue.c index cdb0d0791d..ad32205fb6 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1028,7 +1028,7 @@ static int remove_from_interfaces(const char *interface) AST_LIST_TRAVERSE_SAFE_BEGIN(&interfaces, curint, list) { if (!strcasecmp(curint->interface, interface)) { ast_debug(1, "Removing %s from the list of interfaces that make up all of our queue members.\n", interface); - AST_LIST_REMOVE_CURRENT(&interfaces, list); + AST_LIST_REMOVE_CURRENT(list); ast_free(curint); break; }