shithub: lu9-lua

Download patch

ref: 8831876b2132bb274351cd48749e85c4241a4a30
parent: 4fc16e0ad0724a9237629cf95fcd1f8dc67da8a3
author: kvik <kvik@a-b.xyz>
date: Fri Apr 23 14:26:03 EDT 2021

mem: revert setmalloctag on l_alloc

For unknown reasons this causes the leak analysis to produce
false-positives.  Revert until this is understood / fixed.

--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1012,10 +1012,8 @@
   if (nsize == 0) {
     free(ptr);
     return NULL;
-  }
-  ptr = realloc(ptr, nsize);
-  setmalloctag(ptr, getcallerpc(&ud));
-  return ptr;
+  } else
+  	return realloc(ptr, nsize);
 }