[libbluray-devel] Fix memory leak

Petri Hintukainen git at videolan.org
Fri May 1 18:44:17 CEST 2015


libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Fri May  1 19:43:58 2015 +0300| [c7905fb8d24763602defab26cc4895f1a2f8a560] | committer: Petri Hintukainen

Fix memory leak

> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=c7905fb8d24763602defab26cc4895f1a2f8a560
---

 src/udfread.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/udfread.c b/src/udfread.c
index 13b4046..add9152 100644
--- a/src/udfread.c
+++ b/src/udfread.c
@@ -656,6 +656,8 @@ static void _free_dir(struct udf_dir **pp)
             free(p->files);
         }
 
+        free(p);
+
         *pp = NULL;
     }
 }



More information about the libbluray-devel mailing list