dect
/
asterisk
Archived
13
0
Fork 0

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:
russell 2009-02-06 10:25:09 +00:00
parent 4215a9d82c
commit 5994e82077
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}