Free key and app_id memory 12/264512/1
authorLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 23 Sep 2021 13:56:25 +0000 (19:26 +0530)
committerLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 23 Sep 2021 13:56:25 +0000 (19:26 +0530)
Change-Id: Ie9e087fe61f81a1e7a986a4d7cf2d6c0dd25fcf9
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
common/src/account_ipc_marshal.c

index c271d26..e9c6113 100644 (file)
@@ -110,6 +110,8 @@ static provider_feature_s *_variant_to_provider_feature(GVariant *variant)
        provider_feature_s *provider_feature_data = (provider_feature_s *)calloc(1, sizeof(provider_feature_s));
        if (provider_feature_data == NULL) {
                _ERR("provider_feature_s calloc failed - out of memory.");
+               g_free(key);
+               g_free(app_id);
                return NULL;
        }