diff --git a/external/bsd/pkg_install/dist/create/util.c b/external/bsd/pkg_install/dist/create/util.c index 8d535f0ca1fe..ba8f5e499ee5 100644 --- a/external/bsd/pkg_install/dist/create/util.c +++ b/external/bsd/pkg_install/dist/create/util.c @@ -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); }