Index: res/res_jabber.c =================================================================== --- res/res_jabber.c (revision 87889) +++ res/res_jabber.c (working copy) @@ -250,6 +250,7 @@ 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));