[MPlayer-cvslog] r35462 - trunk/stream/cookies.c
reimar
subversion at mplayerhq.hu
Fri Nov 23 20:21:37 CET 2012
Author: reimar
Date: Fri Nov 23 20:21:36 2012
New Revision: 35462
Log:
Pass pointer to start of allocated memory to free,
not something in the middle.
Modified:
trunk/stream/cookies.c
Modified: trunk/stream/cookies.c
==============================================================================
--- trunk/stream/cookies.c Fri Nov 23 15:17:21 2012 (r35461)
+++ trunk/stream/cookies.c Fri Nov 23 20:21:36 2012 (r35462)
@@ -160,9 +160,10 @@ static struct cookie_list_type *load_coo
struct cookie_list_type
*list)
{
- char *ptr;
+ char *ptr, *buffer;
off_t length;
+ buffer =
ptr = load_file(filename, &length);
if (!ptr)
return list;
@@ -181,7 +182,7 @@ static struct cookie_list_type *load_coo
list = new;
}
}
- free(ptr);
+ free(buffer);
return list;
}
More information about the MPlayer-cvslog
mailing list