[libbluray-devel] Fix leak

hpi1 git at videolan.org
Sun Feb 19 12:27:38 CET 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Jan  8 17:25:59 2017 +0200| [6bc42bab86324f62cc612c60bf2e1b23ff507c08] | committer: hpi1

Fix leak

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

 src/libbluray/bluray.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index c515019..590ef8c 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -987,6 +987,7 @@ static void _fill_disc_info(BLURAY *bd, BD_ENC_INFO *enc_info)
         BLURAY_TITLE **titles = (BLURAY_TITLE**)array_alloc(index->num_titles + 2, sizeof(BLURAY_TITLE));
         if (!titles) {
             BD_DEBUG(DBG_BLURAY | DBG_CRIT, "Can't allocate memory\n");
+            indx_free(&index);
             return;
         }
         bd->titles = titles;



More information about the libbluray-devel mailing list