mgcp_sdp: fix potential leak
Change-Id: I31527b54f602634024a0b687eef26a9b29354282changes/20/25420/5
parent
958f5e74cc
commit
e303fa9ff3
|
@ -394,8 +394,10 @@ int mgcp_parse_sdp_data(const struct mgcp_endpoint *endp,
|
|||
codecs_used = rc;
|
||||
break;
|
||||
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;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (endp)
|
||||
|
|
Loading…
Reference in New Issue