Commit 0daac647 authored by Mans Rullgard's avatar Mans Rullgard

avstring-test: fix memory leaks

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 0a7005be
......@@ -197,10 +197,12 @@ int main(void)
};
for (i=0; i < FF_ARRAY_ELEMS(strings); i++) {
const char *p= strings[i];
const char *p = strings[i], *q;
printf("|%s|", p);
printf(" -> |%s|", av_get_token(&p, ":"));
q = av_get_token(&p, ":");
printf(" -> |%s|", q);
printf(" + |%s|\n", p);
av_free(q);
}
}
......
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