mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
[CRT]
Fix memory allocation in __dllonexit CID 514138 svn path=/trunk/; revision=69006
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user