Fix memory allocation in __dllonexit

CID 514138

svn path=/trunk/; revision=69006
This commit is contained in:
Pierre Schweitzer 2015-09-04 16:49:51 +00:00
parent 975826e064
commit 1aecd02787

View file

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