[mgcp] Set the right variable to NULL otherwise we get a double free

This commit is contained in:
Holger Hans Peter Freyther 2010-04-04 17:58:26 +02:00
parent 0db691dcf6
commit dc0914df09
1 changed files with 1 additions and 1 deletions

View File

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