Fix memory leak in destroyStoreList() 84/147984/3
authorPiotr Sawicki <p.sawicki2@partner.samsung.com>
Wed, 6 Sep 2017 07:32:15 +0000 (09:32 +0200)
committerPiotr Sawicki <p.sawicki2@partner.samsung.com>
Fri, 8 Sep 2017 06:50:37 +0000 (08:50 +0200)
Change-Id: I96a7e85639f3afd368ba6859fbfb393c4e79212d

src/vcore/Client.cpp

index 5ea8561..b271907 100644 (file)
@@ -96,6 +96,8 @@ void destroyStoreList(CertSvcStoreCertList *list)
 {
        while (list) {
                CertSvcStoreCertList *next = list->next;
+               free(list->gname);
+               free(list->title);
                free(list);
                list = next;
        }