]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Correct memory leak in find_user_realtime #7118 (fnordian)
authorBJ Weschke <bweschke@btwtech.com>
Tue, 9 May 2006 13:28:39 +0000 (13:28 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Tue, 9 May 2006 13:28:39 +0000 (13:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@26050 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index efc0de82679c4eeb8df0395fd333299bc75f0702..8486ec10c315186e4923ca59c3c82dbc4b6c380f 100644 (file)
@@ -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);