diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-05-22 12:52:03 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-05-22 12:52:03 +0000 |
commit | 9b5d9279be42979813d41f5425ed4db819b776e1 (patch) | |
tree | 599780cbb2d957cd926232d87ddac50750f94b8e /apps | |
parent | 47362f090608d2cf173c98904487fe8b774250d0 (diff) |
Fix a couple of spots in the handling of device states that could lead to a
double free. (issue #9772, reported by Mike Anikienko, fix by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 5e7e34dee..dad3ac33b 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -551,7 +551,6 @@ static void *handle_statechange(struct statechange *sc) if (loc) { *loc++ = '\0'; } else { - free(sc); return NULL; } @@ -572,7 +571,6 @@ static void *handle_statechange(struct statechange *sc) 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)); - free(sc); return NULL; } |