aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index fbe4847f0..37921fd76 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -211,10 +211,10 @@ void *curl_dorealloc(void *ptr, size_t wantedsize,
{
struct memdebug *mem=NULL;
- assert(wantedsize != 0);
-
size_t size = sizeof(struct memdebug)+wantedsize;
+ assert(wantedsize != 0);
+
if(countcheck("realloc", line, source))
return NULL;