[libdvdnav-devel] [PATCH] Fix write after free
Petri Hintukainen
phintuka at gmail.com
Sun Mar 29 21:21:31 CEST 2015
---
src/ifo_read.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ifo_read.c b/src/ifo_read.c
index ea3c3fc..1b899e7 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -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;
}
}
--
2.1.0
More information about the libdvdnav-devel
mailing list