procfs: Using wrong reallocator

This commit is contained in:
Gregory Nutt 2015-12-01 17:06:40 -06:00
parent 7483ed38ce
commit db6eeed3a6

View File

@ -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;