diff options
author | Russell Bryant <russell@russellbryant.com> | 2009-02-06 10:25:09 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2009-02-06 10:25:09 +0000 |
commit | 1d46bb0d0f07dc648f689320cfe7d526a224f16c (patch) | |
tree | cf6e3d6e942718517209e7b6e4ed7230f6cf8484 /main | |
parent | 69dff2f5f833e37503cb739fb9ff6127461d5c51 (diff) |
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
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c index 20590126a..2589d033b 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; } } |