Resolve a memory leak that would occur on an invalid channel given to Action: Status
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@173848 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
4215a9d82c
commit
5994e82077
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue