mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Add missing free().
Submitted by: Anatoly A. Orehovsky <tolik@mpeks.tomsk.su>
This commit is contained in:
parent
9bb1c20147
commit
8091c27e9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39816
@ -1064,6 +1064,7 @@ unsigned char *
|
||||
free_names(unsigned char **names, int size, int choice)
|
||||
{
|
||||
unsigned char *retval = NULL;
|
||||
unsigned char **p_names = names;
|
||||
|
||||
while (size--)
|
||||
{
|
||||
@ -1072,7 +1073,7 @@ free_names(unsigned char **names, int size, int choice)
|
||||
else
|
||||
free(*names++);
|
||||
}
|
||||
free(names);
|
||||
free(p_names);
|
||||
return retval;
|
||||
} /* free_names() */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user