Commit b272bc0b authored by John Stebbins's avatar John Stebbins

Fix memory leak in error path of nav_get_title_list

title_list was freed, but not title_list->title_info
parent 5dd1a58f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment