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) {