Revert "Don't call lib_free in the kernel code"

This reverts commit 7884c18620.
This commit is contained in:
Petro Karashchenko
2023-08-08 00:14:41 +03:00
committed by Tiago Medicci Serrano
parent 5af40a6fa4
commit b3d620152e
9 changed files with 12 additions and 9 deletions
+1
View File
@@ -37,6 +37,7 @@
#include <errno.h>
#include <assert.h>
#include <nuttx/lib/lib.h>
#include <nuttx/lib/xorshift128.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
+1 -1
View File
@@ -720,7 +720,7 @@ static int telnet_close(FAR struct file *filep)
}
}
kmm_free(devpath);
lib_free(devpath);
}
for (i = 0; i < CONFIG_TELNET_MAXLCLIENTS; i++)
+1 -1
View File
@@ -3542,7 +3542,7 @@ FAR void *gs2200m_register(FAR const char *devpath,
errout:
nxmutex_destroy(&dev->dev_lock);
kmm_free(dev->path);
lib_free(dev->path);
kmm_free(dev);
return NULL;
}