OICStrdup test didn't release its result memory, this fix
ensures that it is properly released.
Change-Id: Ieb271c5fbace45a730905de4dd02f2208bbf42e5
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1259
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
#include "gtest/gtest.h"
#include <oic_string.h>
+#include <oic_malloc.h>
const char SENTINEL_VALUE = 127;
TEST(StringTests, StrdupNormalDup)
EXPECT_NE(param, result);
EXPECT_STREQ(param, result);
+
+ OICFree(result);
}
// Tests a normal copy where the buffer is exactly long enough