Skip to content
Snippets Groups Projects
Commit aa498c31 authored by James Almer's avatar James Almer Committed by Anton Khirnov
Browse files

avpacket: fix leak on realloc in av_packet_add_side_data()


If realloc fails, the pointer is overwritten and the previously allocated buffer
is leaked, which goes against the expected functionality of keeping the packet
unchanged in case of error.

Signed-off-by: default avatarJames Almer <jamrial@gmail.com>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent c7ab0eb3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment