Commit ed87375d authored by Martin Storsjö's avatar Martin Storsjö

mpegtsenc: Clear st->priv_data when freeing it

If not cleared, the caller might try to free it.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent a7ea5e3d
......@@ -588,7 +588,7 @@ static int mpegts_write_header(AVFormatContext *s)
av_free(pids);
for(i = 0;i < s->nb_streams; i++) {
st = s->streams[i];
av_free(st->priv_data);
av_freep(&st->priv_data);
}
return -1;
}
......
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