1
0
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:
Hubert Tarasiuk 2015-04-10 11:52:34 +02:00 committed by Tim Ruehsen
parent 45463eaad7
commit ac40b84ee1

View File

@ -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);
} }
} }