mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
procfs: Using wrong reallocator
This commit is contained in:
parent
7483ed38ce
commit
db6eeed3a6
1 changed files with 1 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ int procfs_register(FAR const struct procfs_entry_s *entry)
|
|||
newsize = newcount * sizeof(struct procfs_entry_s);
|
||||
|
||||
sched_lock();
|
||||
newtable = (FAR struct procfs_entry_s *)realloc(g_procfs_entries, newsize);
|
||||
newtable = (FAR struct procfs_entry_s *)kmm_realloc(g_procfs_entries, newsize);
|
||||
if (newtable == NULL)
|
||||
{
|
||||
ret = -ENOMEM;
|
||||
|
|
Loading…
Reference in a new issue