Fix double free if goto ERROR 02/239102/3
authorjiyong.min <jiyong.min@samsung.com>
Wed, 22 Jul 2020 00:22:48 +0000 (09:22 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Wed, 22 Jul 2020 02:00:02 +0000 (02:00 +0000)
Change-Id: I6dec59425e7b3851c989112970fb83a30b90b74a

src/media_controller_client.c

index dbc949a..a7c1a95 100644 (file)
@@ -1471,7 +1471,9 @@ int __mc_client_get_bundle_from_search(mc_search_h search, bundle **res_bundle)
                }
 
                g_free(key_str);
+               key_str = NULL;
                g_free(val_str);
+               val_str = NULL;
        }
 
        *res_bundle = bundle_data;