mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Revert "Don't call lib_free in the kernel code"
This reverts commit 7884c18620.
This commit is contained in:
committed by
Tiago Medicci Serrano
parent
5af40a6fa4
commit
b3d620152e
@@ -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>
|
||||
|
||||
@@ -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++)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user