From c07e0701c1a7acf285a5c7de389db3df506efec3 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Mon, 29 Apr 2019 15:36:10 -0700 Subject: malloc.c: Move variable declaration used in -DDEBUGGING above code, #134071 --- malloc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'malloc.c') diff --git a/malloc.c b/malloc.c index 72cf2cd307..ed392ee5ba 100644 --- a/malloc.c +++ b/malloc.c @@ -1229,6 +1229,9 @@ Perl_malloc(size_t nbytes) dVAR; union overhead *p; int bucket; +#if defined(DEBUGGING) || defined(RCHECK) + MEM_SIZE size = nbytes; +#endif /* A structure that has more than PTRDIFF_MAX bytes is unfortunately * legal in C, but in such, if two elements are far enough apart, we @@ -1242,10 +1245,6 @@ Perl_malloc(size_t nbytes) return NULL; } -#if defined(DEBUGGING) || defined(RCHECK) - MEM_SIZE size = nbytes; -#endif - BARK_64K_LIMIT("Allocation",nbytes,nbytes); #ifdef DEBUGGING if ((long)nbytes < 0) -- cgit v1.2.1