[mgcp] Set the right variable to NULL otherwise we get a double free
This commit is contained in:
parent
0db691dcf6
commit
dc0914df09
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue