1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avstring-test: fix memory leaks

Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
Mans Rullgard
2012-10-12 22:20:09 +01:00
parent 0a7005bebd
commit 0daac647af

View File

@@ -197,10 +197,12 @@ int main(void)
}; };
for (i=0; i < FF_ARRAY_ELEMS(strings); i++) { 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|", p);
printf(" -> |%s|", av_get_token(&p, ":")); q = av_get_token(&p, ":");
printf(" -> |%s|", q);
printf(" + |%s|\n", p); printf(" + |%s|\n", p);
av_free(q);
} }
} }