diff --git a/binfmt/binfmt_loadmodule.c b/binfmt/binfmt_loadmodule.c index f6ccb60c975..6537e6900cf 100644 --- a/binfmt/binfmt_loadmodule.c +++ b/binfmt/binfmt_loadmodule.c @@ -194,7 +194,7 @@ int load_module(FAR struct binary_s *bin, FAR const char *filename, /* Free the allocated fullpath */ - kmm_free(fullpath); + lib_free(fullpath); /* Break out of the loop with ret == OK on success */