Skip to content
Snippets Groups Projects
Commit 3e1545b4 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #27201: libiax: fix memory leak

parent 708b194e
No related branches found
No related tags found
No related merge requests found
...@@ -842,6 +842,7 @@ static int iax_reliable_xmit(struct iax_frame *f) ...@@ -842,6 +842,7 @@ static int iax_reliable_xmit(struct iax_frame *f)
if (!fc->data || !fc->datalen) { if (!fc->data || !fc->datalen) {
IAXERROR "No frame data?"); IAXERROR "No frame data?");
DEBU(G "No frame data?\n"); DEBU(G "No frame data?\n");
free(fc);
return -1; return -1;
} else { } else {
fc->data = (char *)malloc(fc->datalen); fc->data = (char *)malloc(fc->datalen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment