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
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));