Skip to content

Commit

Permalink
Fix write after free
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
  • Loading branch information
hpi1 authored and jbkempf committed Apr 29, 2015
1 parent 2b8f60f commit 4e269e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ifo_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,8 @@ void ifoFree_TT_SRPT(ifo_handle_t *ifofile) {

if(ifofile->tt_srpt) {
free(ifofile->tt_srpt->title);
free(ifofile->tt_srpt);
ifofile->tt_srpt->title = NULL;
free(ifofile->tt_srpt);
ifofile->tt_srpt = NULL;
}
}
Expand Down

0 comments on commit 4e269e5

Please sign in to comment.