Merged revisions 26050 via svnmerge from
authorBJ Weschke <bweschke@btwtech.com>
Tue, 9 May 2006 13:33:54 +0000 (13:33 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Tue, 9 May 2006 13:33:54 +0000 (13:33 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r26050 | bweschke | 2006-05-09 08:28:39 -0500 (Tue, 09 May 2006) | 3 lines

 Correct memory leak in find_user_realtime #7118 (fnordian)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26051 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index f9ba869..063eff4 100644 (file)
@@ -586,6 +586,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;
                        } 
                                        apply_option(retval, tmp->name, tmp->value);
                                tmp = tmp->next;
                        } 
+                       ast_variables_destroy(var);
                } else { 
                        if (!ivm) 
                                free(retval);
                } else { 
                        if (!ivm) 
                                free(retval);