Use __UNCONST() rather than a simple cast to free a const char *

while avoiding gcc noise.
This commit is contained in:
kre 2019-04-06 08:29:01 +00:00
parent 6dd0eaa656
commit 1fb928b64f
1 changed files with 2 additions and 2 deletions

View File

@ -147,8 +147,8 @@ void
free_memory_file(struct memory_file *file)
{
if (file != NULL) {
free((char *)file->owner);
free((char *)file->group);
free(__UNCONST(file->owner));
free(__UNCONST(file->group));
free(file->data);
free(file);
}