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
1 changed files with 4 additions and 1 deletions

View File

@ -1284,7 +1284,10 @@ free_vec (char **vec)
{
char **p = vec;
while (*p)
xfree (*p++);
{
xfree (*p);
p++;
}
xfree (vec);
}
}