mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-28 00:10:25 -07:00
Correct memory leak in find_user_realtime #7118 (fnordian)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@26050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -562,6 +562,7 @@ static struct ast_vm_user *find_user_realtime(struct ast_vm_user *ivm, const cha
|
||||
apply_option(retval, tmp->name, tmp->value);
|
||||
tmp = tmp->next;
|
||||
}
|
||||
ast_variables_destroy(var);
|
||||
} else {
|
||||
if (!ivm)
|
||||
free(retval);
|
||||
|
||||
Reference in New Issue
Block a user