write_archive_locales: Fix memory leak

Fix memory leak identified by coverity.
This commit is contained in:
Siddhesh Poyarekar 2021-05-11 17:56:19 +05:30
parent ddd4a2d3c6
commit 213573f86e
1 changed files with 2 additions and 0 deletions

View File

@ -713,6 +713,8 @@ write_archive_locales (void **all_datap, char *linebuf)
locrec->record[LC_CTYPE].len);
}
free (names);
ret = used;
}