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);
|
newsize = newcount * sizeof(struct procfs_entry_s);
|
||||||
|
|
||||||
sched_lock();
|
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)
|
if (newtable == NULL)
|
||||||
{
|
{
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user