[libdvdnav-devel] dvd_reader.c: fix a little memory leak

Lawrence D'Oliveiro git at videolan.org
Thu Oct 2 14:56:05 CEST 2014


libdvdread | branch: master | Lawrence D'Oliveiro <ldo at geek-central.gen.nz> | Thu Oct  2 04:50:52 2014 +0000| [71180022f3f6c55faf0bbe9ed9f7c4dc3be08ba3] | committer: Jean-Baptiste Kempf

dvd_reader.c: fix a little memory leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=71180022f3f6c55faf0bbe9ed9f7c4dc3be08ba3
---

 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;
       }



More information about the libdvdnav-devel mailing list