From a05834129886be86c2ff978cfc73ae1e6f082682 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 26 Oct 2014 12:18:00 -0400 Subject: [PATCH] content: Fix potential memory leak --- content.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content.c b/content.c index c0f7c0a500..7d84358b12 100644 --- a/content.c +++ b/content.c @@ -347,7 +347,10 @@ static bool load_content(const struct retro_subsystem_info *special, calloc(content->size, sizeof(*info)); if (!info) + { + string_list_free(additional_path_allocs); return false; + } for (i = 0; i < content->size; i++) {