From: Russell Bryant Date: Fri, 6 Feb 2009 10:25:09 +0000 (+0000) Subject: Resolve a memory leak that would occur on an invalid channel given to Action: Status X-Git-Tag: 1.6.2.0-beta1~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d46bb0d0f07dc648f689320cfe7d526a224f16c;p=thirdparty%2Fasterisk.git Resolve a memory leak that would occur on an invalid channel given to Action: Status git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@173848 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/manager.c b/main/manager.c index 20590126af..2589d033b4 100644 --- a/main/manager.c +++ b/main/manager.c @@ -1862,6 +1862,7 @@ static int action_status(struct mansession *s, const struct message *m) c = ast_get_channel_by_name_locked(name); if (!c) { astman_send_error(s, m, "No such channel"); + ast_free(str); return 0; } }