summaryrefslogtreecommitdiff
path: root/nuttx/lib/unistd/lib_chdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/lib/unistd/lib_chdir.c')
-rw-r--r--nuttx/lib/unistd/lib_chdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/unistd/lib_chdir.c b/nuttx/lib/unistd/lib_chdir.c
index c054f2b23..f79b424ff 100644
--- a/nuttx/lib/unistd/lib_chdir.c
+++ b/nuttx/lib/unistd/lib_chdir.c
@@ -164,7 +164,7 @@ int chdir(FAR const char *path)
alloc = strdup(oldpwd); /* kludge needed because environment is realloc'ed */
setenv("OLDPWD", alloc, TRUE);
- free(alloc);
+ lib_free(alloc);
/* Set the cwd to the input 'path' */