Commit 4556dad2 authored by Marton Balint's avatar Marton Balint

avdevice/iec61883: free packet on buffer allocation error

Fixes Coverity CID 1396416.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 8985e4af
......@@ -120,6 +120,7 @@ static int iec61883_callback(unsigned char *data, int length,
packet->buf = av_malloc(length);
if (!packet->buf) {
av_free(packet);
ret = -1;
goto exit;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment