We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0898f5 commit 4c66a27Copy full SHA for 4c66a27
tools/perf/tests/expr.c
@@ -19,7 +19,7 @@ int test__expr(struct test *t __maybe_unused, int subtest __maybe_unused)
19
const char *p;
20
const char **other;
21
double val;
22
- int ret;
+ int i, ret;
23
struct parse_ctx ctx;
24
int num_other;
25
@@ -56,6 +56,9 @@ int test__expr(struct test *t __maybe_unused, int subtest __maybe_unused)
56
TEST_ASSERT_VAL("find other", !strcmp(other[1], "BAZ"));
57
TEST_ASSERT_VAL("find other", !strcmp(other[2], "BOZO"));
58
TEST_ASSERT_VAL("find other", other[3] == NULL);
59
+
60
+ for (i = 0; i < num_other; i++)
61
+ free((void *)other[i]);
62
free((void *)other);
63
64
return 0;
0 commit comments