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

* #27201: libiax: remove redundant NULL check

fr has already been checked at this point in the code, or it's pointing
to a buffer allocated on the heap.
parent 5cba4aef
No related branches found
No related tags found
No related merge requests found
...@@ -1199,7 +1199,7 @@ static int iax_send(struct iax_session *pvt, struct ast_frame *f, unsigned int t ...@@ -1199,7 +1199,7 @@ static int iax_send(struct iax_session *pvt, struct ast_frame *f, unsigned int t
res = iax_xmit_frame(fr); res = iax_xmit_frame(fr);
} }
} }
if( !now && fr!=NULL ) if( !now )
iax_frame_free( fr ); iax_frame_free( fr );
return res; return res;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment