[DVDnav-discuss] r1250 - trunk/libdvdread/src/ifo_read.c

ib subversion at mplayerhq.hu
Wed Dec 12 15:21:16 CET 2012


Author: ib
Date: Wed Dec 12 15:21:16 2012
New Revision: 1250

Log:
Remove erroneous free().

The address operator is wrong and the memory actually meant
to be freed has already been freed by ifoFree_PGC() anyway.

Modified:
   trunk/libdvdread/src/ifo_read.c

Modified: trunk/libdvdread/src/ifo_read.c
==============================================================================
--- trunk/libdvdread/src/ifo_read.c	Sun Dec  9 23:03:38 2012	(r1249)
+++ trunk/libdvdread/src/ifo_read.c	Wed Dec 12 15:21:16 2012	(r1250)
@@ -1932,7 +1932,6 @@ static void ifoFree_PGCIT_internal(pgcit
     for(i = 0; i < (*pgcit)->nr_of_pgci_srp; i++)
     {
       ifoFree_PGC(&(*pgcit)->pgci_srp[i].pgc);
-      free(&(*pgcit)->pgci_srp[i].pgc);
     }
     free((*pgcit)->pgci_srp);
     free(*pgcit);


More information about the DVDnav-discuss mailing list