[libdvdnav-devel] [PATCH] a little memory leak
Lawrence D'Oliveiro
ldo at geek-central.gen.nz
Thu Oct 2 06:50:52 CEST 2014
---
src/dvd_reader.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/dvd_reader.c b/src/dvd_reader.c
index 7af2730..fb045b3 100644
--- a/src/dvd_reader.c
+++ b/src/dvd_reader.c
@@ -450,6 +450,7 @@ dvd_reader_t *DVDOpen( const char *ppath )
if( retval == -1 ) {
goto DVDOpen_error;
}
+ free(path_copy);
path_copy = new_path;
new_path = NULL;
}
--
2.1.0
More information about the libdvdnav-devel
mailing list