mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Merged revisions 173848 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r173848 | russell | 2009-02-06 04:25:09 -0600 (Fri, 06 Feb 2009) | 2 lines Resolve a memory leak that would occur on an invalid channel given to Action: Status ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@173850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1855,6 +1855,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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user