procfs: Using wrong reallocator
This commit is contained in:
parent
7483ed38ce
commit
db6eeed3a6
@ -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 New Issue
Block a user