Commit d3035136 authored by Michael Niedermayer's avatar Michael Niedermayer

url_alloc_for_protocol: fix use of uninitialized variable

Fixes CID703830
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3d48dd01
......@@ -156,6 +156,7 @@ static int url_alloc_for_protocol (URLContext **puc, struct URLProtocol *up,
av_log(uc, AV_LOG_ERROR, "Error parsing options string %s\n", start);
av_freep(&uc->priv_data);
av_freep(&uc);
err = AVERROR(EINVAL);
goto fail;
}
memmove(start, key+1, strlen(key));
......
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