Merged revisions 87908 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11131)
........
r87908 | qwell | 2007-10-31 16:23:11 -0500 (Wed, 31 Oct 2007) | 4 lines

Make sure we free some allocated memory before returning.

Issue 11131, patch by eliel.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker 2007-10-31 21:23:42 +00:00
parent fa33494d80
commit b1d5789cc5
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ static struct aji_version *aji_find_version(char *node, char *version, ikspak *p
res = ast_malloc(sizeof(*res));
if(!res) {
ast_log(LOG_ERROR, "Out of memory!\n");
ast_free(list);
return NULL;
}
ast_copy_string(list->node, node, sizeof(list->node));