Plug resource leaks in acl test 55/24655/6
authorMats Wichmann <mats@linux.com>
Sat, 14 Apr 2018 14:52:11 +0000 (08:52 -0600)
committerMats Wichmann <mats@linux.com>
Wed, 29 Aug 2018 16:15:36 +0000 (16:15 +0000)
Change-Id: I6b28e507ab3a7d03797da07fb0cc8663918e39f8
Signed-off-by: Mats Wichmann <mats@linux.com>
resource/csdk/security/unittest/aclresourcetest.cpp

index b8c07e6..2ed6b35 100644 (file)
@@ -498,6 +498,7 @@ TEST(ACLResourceTest, ACLDeleteWithSingleResourceTest)
 
     // Perform cleanup
     DeInitACLResource();
+    DeleteACLList(&acl);
     OICFree(ehReq.query);
     OCPayloadDestroy((OCPayload *)securityPayload);
     OICFree(payload);
@@ -570,6 +571,7 @@ TEST(ACLResourceTest, ACLDeleteWithMultiResourceTest)
     // Perform cleanup
     OCPayloadDestroy((OCPayload *)securityPayload);
     DeInitACLResource();
+    DeleteACLList(&acl);
     OICFree(ehReq.query);
     OICFree(payload);
 }
@@ -617,6 +619,7 @@ TEST(ACLResourceTest, ACLGetWithQueryTest)
     // Perform cleanup
     OCPayloadDestroy((OCPayload *)securityPayload);
     DeInitACLResource();
+    DeleteACLList(&acl);
     OICFree(ehReq.query);
     OICFree(payload);
 }