[libbluray-devel] Plug memory leak in mpls parser

John Stebbins git at videolan.org
Fri Jul 8 17:59:28 CEST 2011


libbluray | branch: master | John Stebbins <jstebbins.hb at gmail.com> | Fri Jul  8 08:57:44 2011 -0700| [51d7d60a96d064d46db20b5665e477bf3c5481f0] | committer: John Stebbins

Plug memory leak in mpls parser

IG and secondary streams in the STN were not getting freed.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=51d7d60a96d064d46db20b5665e477bf3c5481f0
---

 src/libbluray/bdnav/mpls_parse.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/libbluray/bdnav/mpls_parse.c b/src/libbluray/bdnav/mpls_parse.c
index e9314a9..b27f5a1 100644
--- a/src/libbluray/bdnav/mpls_parse.c
+++ b/src/libbluray/bdnav/mpls_parse.c
@@ -404,6 +404,9 @@ _clean_stn(MPLS_STN *stn)
     X_FREE(stn->video);
     X_FREE(stn->audio);
     X_FREE(stn->pg);
+    X_FREE(stn->ig);
+    X_FREE(stn->secondary_audio);
+    X_FREE(stn->secondary_video);
 }
 
 static int



More information about the libbluray-devel mailing list