mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04: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;
|
char **p = vec;
|
||||||
while (*p)
|
while (*p)
|
||||||
xfree (*p++);
|
{
|
||||||
|
xfree (*p);
|
||||||
|
p++;
|
||||||
|
}
|
||||||
xfree (vec);
|
xfree (vec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user