Use __UNCONST() rather than a simple cast to free a const char *
while avoiding gcc noise.
This commit is contained in:
parent
6dd0eaa656
commit
1fb928b64f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue