projects
/
platform
/
upstream
/
cmocka.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.1.5
[platform/upstream/cmocka.git]
/
example
/
mock
/
uptime
/
test_uptime.c
diff --git
a/example/mock/uptime/test_uptime.c
b/example/mock/uptime/test_uptime.c
index
badfac9
..
c724f95
100644
(file)
--- a/
example/mock/uptime/test_uptime.c
+++ b/
example/mock/uptime/test_uptime.c
@@
-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)