From 936d29e7030deb64f49bded5e0e961685c5bcf9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Thu, 4 Jun 2015 12:41:07 -0300 Subject: [PATCH] (libretrodb) Fix leak in database_cursor_iterate() --- database_info.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/database_info.c b/database_info.c index b8fe698746..e5fd24b669 100644 --- a/database_info.c +++ b/database_info.c @@ -214,7 +214,10 @@ static int database_cursor_iterate(libretrodb_cursor_t *cur, return -1; if (item.type != RDT_MAP) + { + rmsgpack_dom_value_free(&item); return 1; + } db_info->analog_supported = -1; db_info->rumble_supported = -1;