mirror of
https://github.com/mirror/wget.git
synced 2025-03-13 11:20:19 +08:00
Fix error in free_vec.
* src/utils.c (free_vec): Increment pointer instead of its value. Reported-by: Gisle Vanem <gvanem@yahoo.no>
This commit is contained in:
parent
45463eaad7
commit
ac40b84ee1
@ -1284,7 +1284,10 @@ free_vec (char **vec)
|
||||
{
|
||||
char **p = vec;
|
||||
while (*p)
|
||||
xfree (*p++);
|
||||
{
|
||||
xfree (*p);
|
||||
p++;
|
||||
}
|
||||
xfree (vec);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user