Author: pschweitzer
Date: Fri Sep 4 16:49:51 2015
New Revision: 69006
URL:
http://svn.reactos.org/svn/reactos?rev=69006&view=rev
Log:
[CRT]
Fix memory allocation in __dllonexit
CID 514138
Modified:
trunk/reactos/lib/sdk/crt/stdlib/atexit.c
Modified: trunk/reactos/lib/sdk/crt/stdlib/atexit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdlib/atexit.…
==============================================================================
--- trunk/reactos/lib/sdk/crt/stdlib/atexit.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/stdlib/atexit.c [iso-8859-1] Fri Sep 4 16:49:51 2015
@@ -44,7 +44,7 @@
if (++len <= 0)
return NULL;
- tmp = realloc(*start, len * sizeof(tmp));
+ tmp = realloc(*start, len * sizeof(_onexit_t));
if (!tmp)
return NULL;
*start = tmp;