Skip to content
Snippets Groups Projects
Commit 76fae319 authored by Matt O'Gorman's avatar Matt O'Gorman
Browse files

oops moved block without renaming a variable correctly.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6723184a
Branches
Tags
No related merge requests found
......@@ -161,14 +161,14 @@ static void aji_client_destroy(struct aji_client *obj)
iks_filter_delete(obj->f);
iks_parser_delete(obj->p);
iks_stack_delete(obj->stack);
AST_LIST_LOCK(&client->messages);
while(tmp = AST_LIST_REMOVE_HEAD(&client->messages, list)) {
AST_LIST_LOCK(&obj->messages);
while ((tmp = AST_LIST_REMOVE_HEAD(&obj->messages, list))) {
if (tmp->from)
free(tmp->from);
if (tmp->message)
free(tmp->message);
}
AST_LIST_HEAD_DESTROY(&client->messages);
AST_LIST_HEAD_DESTROY(&obj->messages);
free(obj);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment