Free options and pdu in the end of the tests.
authorZiran Sun <ziran.sun@samsung.com>
Tue, 10 Jan 2017 10:42:00 +0000 (10:42 +0000)
committerZiran Sun <ziran.sun@samsung.com>
Thu, 26 Jan 2017 10:36:55 +0000 (10:36 +0000)
Change-Id: Ic036417c8aa02d76f5d9c8a1805c5c18a050fe13
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16277
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
resource/csdk/connectivity/test/caprotocolmessagetest.cpp

index 3e6b283959798623e0c0d712fb0245ca2b9eb998..4e95ff5a8ff93813e530c069250acd688441f9c6 100644 (file)
@@ -212,4 +212,6 @@ TEST(CAProtocolMessage, CAGetTokenFromPDU)
     outData.type = CA_MSG_NONCONFIRM;
 
     EXPECT_EQ(CA_STATUS_OK, CAGetTokenFromPDU(pdu->transport_hdr, &outData, &tempRep));
+    coap_delete_list(options);
+    coap_delete_pdu(pdu);
 }