Commit 4e269e52 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

Fix write after free

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2b8f60f0
...@@ -1118,8 +1118,8 @@ void ifoFree_TT_SRPT(ifo_handle_t *ifofile) { ...@@ -1118,8 +1118,8 @@ void ifoFree_TT_SRPT(ifo_handle_t *ifofile) {
if(ifofile->tt_srpt) { if(ifofile->tt_srpt) {
free(ifofile->tt_srpt->title); free(ifofile->tt_srpt->title);
free(ifofile->tt_srpt);
ifofile->tt_srpt->title = NULL; ifofile->tt_srpt->title = NULL;
free(ifofile->tt_srpt);
ifofile->tt_srpt = NULL; ifofile->tt_srpt = NULL;
} }
} }
......
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