[libbluray-devel] Fix memory leak in error path of nav_get_title_list
John Stebbins
git at videolan.org
Wed Jun 1 19:20:01 CEST 2011
libbluray | branch: master | John Stebbins <jstebbins.hb at gmail.com> | Wed Jun 1 10:17:51 2011 -0700| [b272bc0b788d9048e8356e0ac72ff79baeb59dcf] | committer: John Stebbins
Fix memory leak in error path of nav_get_title_list
title_list was freed, but not title_list->title_info
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=b272bc0b788d9048e8356e0ac72ff79baeb59dcf
---
src/libbluray/bdnav/navigation.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/libbluray/bdnav/navigation.c b/src/libbluray/bdnav/navigation.c
index 1f6895a..542e2c1 100644
--- a/src/libbluray/bdnav/navigation.c
+++ b/src/libbluray/bdnav/navigation.c
@@ -130,6 +130,7 @@ NAV_TITLE_LIST* nav_get_title_list(const char *root, uint32_t flags)
if (dir == NULL) {
BD_DEBUG(DBG_NAV, "Failed to open dir: %s\n", path);
X_FREE(path);
+ X_FREE(title_list->title_info);
X_FREE(title_list);
return NULL;
}
More information about the libbluray-devel
mailing list