Imported Upstream version 1.1.5
[platform/upstream/cmocka.git] / example / mock / uptime / test_uptime.c
index badfac9..c724f95 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <setjmp.h>
 #include <cmocka.h>
 
@@ -166,6 +167,8 @@ static void test_calc_uptime_null(void **state)
 
     uptime_str = calc_uptime();
     assert_null(uptime_str);
+
+    free(uptime_str);
 }
 
 int main(void)