Mercurial > libdvdread4.hg
changeset 73:933bbcf89338 src
Fix memory leaks.
Patch by Rmi Duraffort ^ivoire#videolan*org!
author | rathann |
---|---|
date | Thu, 06 Oct 2011 21:02:00 +0000 |
parents | 99af5ed114a4 |
children | 133be2fe0eef |
files | ifo_read.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ifo_read.c Thu Oct 06 12:10:01 2011 +0000 +++ b/ifo_read.c Thu Oct 06 21:02:00 2011 +0000 @@ -1896,6 +1896,7 @@ ifoFree_PGC(pgcit->pgci_srp[j].pgc); free(pgcit->pgci_srp[j].pgc); } + free(pgcit->pgci_srp[i].pgc); goto fail; } } @@ -1911,7 +1912,10 @@ if(pgcit) { int i; 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); } }