Commit d4929b8d authored by Rusty Russell's avatar Rusty Russell

str: clean up tests so ccanlint doesn't complain about memory leaking.

parent 0f76c8b3
......@@ -73,9 +73,14 @@ int main(int argc, char *argv[])
ok1(!strstarts(strings[i], strings[j]));
ok1(!strends(reva, revb));
}
free(reva);
free(revb);
}
}
for (i = 0; i < n; i++)
free(strings[i]);
ok1(streq(stringify(NUM_SUBSTRINGS),
"((sizeof(substrings) / sizeof(substrings[0])) - 1)"));
ok1(streq(stringify(ARRAY_SIZE(substrings)),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment