Browse Source

avstring-test: fix memory leaks

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n1.1
Mans Rullgard 13 years ago
parent
commit
0daac647af
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavutil/avstring.c

+ 4
- 2
libavutil/avstring.c View File

@@ -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);
}
}



Loading…
Cancel
Save