1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

cookies: fix crash

This was broken in 3f85094 (probably merge mistake). I guess nobody ever
uses this feature.
This commit is contained in:
wm4 2013-01-24 14:32:35 +01:00
parent c162b6d64d
commit 570271c776

View File

@ -162,10 +162,10 @@ static struct cookie_list_type *load_cookies_from(const char *filename,
struct cookie_list_type struct cookie_list_type
*list) *list)
{ {
char *ptr; char *ptr, *file;
int64_t length; int64_t length;
ptr = load_file(filename, &length); ptr = file = load_file(filename, &length);
if (!ptr) if (!ptr)
return list; return list;
@ -183,7 +183,7 @@ static struct cookie_list_type *load_cookies_from(const char *filename,
list = new; list = new;
} }
} }
free(ptr); free(file);
return list; return list;
} }