]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/http.c
vf_sab: Fix memleak
[ffmpeg] / libavformat / http.c
index 7f33ecaf2925b7c11bcd1101a1db2cef4dfb3240..e75ad9e98932f697da2b805c425f6e463ddb5110 100644 (file)
@@ -421,6 +421,8 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
                 cvalue = av_strdup(param);
             }
         }
+        if (!cdomain)
+            cdomain = av_strdup(domain);
 
         // ensure all of the necessary values are valid
         if (!cdomain || !cpath || !cvalue) {