mgcp_sdp: fix potential leak
Change-Id: I31527b54f602634024a0b687eef26a9b29354282
This commit is contained in:
parent
958f5e74cc
commit
e303fa9ff3
|
@ -394,8 +394,10 @@ int mgcp_parse_sdp_data(const struct mgcp_endpoint *endp,
|
||||||
codecs_used = rc;
|
codecs_used = rc;
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
if (audio_ip_from_sdp(&rtp->addr, line) < 0)
|
if (audio_ip_from_sdp(&rtp->addr, line) < 0) {
|
||||||
|
talloc_free(tmp_ctx);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (endp)
|
if (endp)
|
||||||
|
|
Loading…
Reference in New Issue