app_stack: Add missing unlock in off-nominal path of STACK_PEEK function.

ASTERISK-23620 #close
Reported by: Bradley Watkins
Patches:
      ASTERISK-23620_unlock_oldlist.patch (license #5021) patch uploaded by Bradley Watkins


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@412225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2014-04-11 21:37:42 +00:00
parent 751dc2b7da
commit ee72a7a7d1

View File

@@ -734,6 +734,7 @@ static int stackpeek_read(struct ast_channel *chan, const char *cmd, char *data,
if (!ast_true(args.suppress)) {
ast_log(LOG_ERROR, "Stack peek of '%s' is more stack frames than I have\n", args.n);
}
AST_LIST_UNLOCK(oldlist);
ast_channel_unlock(chan);
return -1;
}