aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-04 17:58:26 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-04 17:58:26 +0200
commitdc0914df098f754ec8f6af5fddccce5521f6332a (patch)
tree1de97e2eac31a3b3b863edbd69b211443a720a56
parent0db691dcf6116fa21cdc9b9142d9c51bff7ceeef (diff)
[mgcp] Set the right variable to NULL otherwise we get a double free
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c
index a3a050a79..ba1d6d8aa 100644
--- a/openbsc/src/mgcp/mgcp_protocol.c
+++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -718,7 +718,7 @@ void mgcp_free_endp(struct mgcp_endpoint *endp)
if (endp->local_options) {
talloc_free(endp->local_options);
- endp->callid = NULL;
+ endp->local_options = NULL;
}
if (!endp->cfg->early_bind) {