aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-16 15:21:58 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-16 15:21:58 +0000
commit5c606f98a95db67f0400c15ffefda2a2ed24792a (patch)
tree2398bbcfdb9e0a2b0bc7f04dd4c6334232d6c37b
parentc09278be8fb15251a78480687b4a0aaa5ec368a7 (diff)
Fixing a double free which happens in the statechange thread.
(closes issue #10987, reported by andrew) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85852 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_queue.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index fbdab1bab..3fee3f28b 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -543,7 +543,6 @@ static void *handle_statechange(struct statechange *sc)
if (loc) {
*loc++ = '\0';
} else {
- free(sc);
return NULL;
}
@@ -564,7 +563,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;
}
@@ -613,8 +611,6 @@ static void *handle_statechange(struct statechange *sc)
}
AST_LIST_UNLOCK(&queues);
- free(sc);
-
return NULL;
}