Skip to content
Snippets Groups Projects
Commit 138b4676 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Rémi Denis-Courmont
Browse files

rtp: raw: fix use-after-free

parent a91d9d8f
No related branches found
No related tags found
Loading
Pipeline #233683 passed with stage
in 18 minutes and 13 seconds
......@@ -158,8 +158,8 @@ static int rtp_raw_open(vlc_object_t *obj, struct vlc_rtp_pt *pt,
|| vlc_sdp_fmtp_get(desc, "width", &sys->width)
|| vlc_sdp_fmtp_get(desc, "height", &sys->height)
|| vlc_sdp_fmtp_get(desc, "depth", &sys->depth)) {
vlc_error(obj->logger, "missing parameters for raw video");
free(sys);
vlc_error(sys->log, "missing parameters for raw video");
return VLC_EINVAL;
}
......
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