diff options
author | bbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-15 18:14:02 +0000 |
---|---|---|
committer | bbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-15 18:14:02 +0000 |
commit | 92d86d378007c6271141b0b1e187fc35402b6864 (patch) | |
tree | 8033a126d8b56e8c2f70890244be97dc8d653624 /apps/app_queue.c | |
parent | e5c5e87788c2fc195bbc86f6147f7a4c4a26987d (diff) |
Fix memory leak in app_queue when a device state is changed but it isn't
a member of any queue.
(closes issue #13073)
Reported by: eliel
Patches:
app_queue.c.patch uploaded by eliel (license 64)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131015 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 61630d14d..fef9685bd 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -782,6 +782,7 @@ static int handle_statechange(void *datap) if (!curint) { if (option_debug > 2) ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d' (%s) but we don't care because they're not a member of any queue.\n", technology, loc, sc->state, devstate2str(sc->state)); + ast_free(sc); return 0; } |