Commit 55686819 authored by unknown's avatar unknown

fix for bug #1634 '"operator new" in my_new wastes memory'



BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
parent a483fd21
......@@ -48,6 +48,7 @@ jcole@sarvik.tfr.cafe.ee
jcole@tetra.spaceapes.com
jorge@linux.jorge.mysql.com
kaj@work.mysql.com
konstantin@mysql.com
kostja@oak.local
lenz@kallisto.mysql.com
lenz@mysql.com
......
......@@ -25,12 +25,12 @@
void *operator new (size_t sz)
{
return (void *) malloc (sz ? sz+1 : sz);
return (void *) malloc (sz ? sz : 1);
}
void *operator new[] (size_t sz)
{
return (void *) malloc (sz ? sz+1 : sz);
return (void *) malloc (sz ? sz : 1);
}
void operator delete (void *ptr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment