|
@@ -19,7 +19,7 @@ int test__expr(struct test *t __maybe_unused, int subtest __maybe_unused)
|
|
|
const char *p;
|
|
const char *p;
|
|
|
const char **other;
|
|
const char **other;
|
|
|
double val;
|
|
double val;
|
|
|
- int ret;
|
|
|
|
|
|
|
+ int i, ret;
|
|
|
struct parse_ctx ctx;
|
|
struct parse_ctx ctx;
|
|
|
int num_other;
|
|
int num_other;
|
|
|
|
|
|
|
@@ -56,6 +56,9 @@ int test__expr(struct test *t __maybe_unused, int subtest __maybe_unused)
|
|
|
TEST_ASSERT_VAL("find other", !strcmp(other[1], "BAZ"));
|
|
TEST_ASSERT_VAL("find other", !strcmp(other[1], "BAZ"));
|
|
|
TEST_ASSERT_VAL("find other", !strcmp(other[2], "BOZO"));
|
|
TEST_ASSERT_VAL("find other", !strcmp(other[2], "BOZO"));
|
|
|
TEST_ASSERT_VAL("find other", other[3] == NULL);
|
|
TEST_ASSERT_VAL("find other", other[3] == NULL);
|
|
|
|
|
+
|
|
|
|
|
+ for (i = 0; i < num_other; i++)
|
|
|
|
|
+ free((void *)other[i]);
|
|
|
free((void *)other);
|
|
free((void *)other);
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|