Browse Source

avformat/http: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
bcd4447173
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavformat/http.c

+ 3
- 3
libavformat/http.c View File

@@ -643,9 +643,9 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
}

done_cookie:
av_free(cdomain);
av_free(cpath);
av_free(cvalue);
av_freep(&cdomain);
av_freep(&cpath);
av_freep(&cvalue);
if (ret < 0) {
if (*cookies) av_freep(cookies);
av_free(cset_cookies);


Loading…
Cancel
Save