From: Richard Mudgett Date: Fri, 11 Apr 2014 21:38:53 +0000 (+0000) Subject: app_stack: Add missing unlock in off-nominal path of STACK_PEEK function. X-Git-Tag: 11.10.0-rc1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4b964c29d8e4a892f561b2d837c12174e6bbe83;p=thirdparty%2Fasterisk.git 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 ........ Merged revisions 412225 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@412226 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_stack.c b/apps/app_stack.c index dcd35d235b..b069623289 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -852,6 +852,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; }