mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
[CRT]
Fix memory allocation in __dllonexit CID 514138 svn path=/trunk/; revision=69006
This commit is contained in:
parent
975826e064
commit
1aecd02787
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ _onexit_t CDECL __dllonexit(_onexit_t func, _onexit_t **start, _onexit_t **end)
|
|||
if (++len <= 0)
|
||||
return NULL;
|
||||
|
||||
tmp = realloc(*start, len * sizeof(tmp));
|
||||
tmp = realloc(*start, len * sizeof(_onexit_t));
|
||||
if (!tmp)
|
||||
return NULL;
|
||||
*start = tmp;
|
||||
|
|
Loading…
Reference in a new issue