Bruce Merry 8dde46ad16 Fix incorrect memory usage accounting in zrealloc
When HAVE_MALLOC_SIZE is false, each call to zrealloc causes used_memory
to increase by PREFIX_SIZE more than it should, due to mis-matched
accounting between the original zmalloc (which includes PREFIX size in
its increment) and zrealloc (which misses it from its decrement).

I've also supplied a command-line test to easily demonstrate the
problem. It's not wired into the test framework, because I don't know
TCL so I'm not sure how to automate it.
2018-10-03 11:19:12 +02:00
..
2016-04-25 16:49:57 +03:00
2016-06-07 16:46:00 -04:00
2018-07-04 20:04:06 +08:00
2018-03-21 15:34:13 +08:00
2016-04-04 08:50:58 +02:00
2018-07-03 18:19:46 +02:00
2018-09-14 12:36:34 +02:00
2018-07-03 18:19:46 +02:00
2018-09-14 12:36:59 +02:00
2018-07-18 10:16:33 +03:00
2018-07-17 10:39:47 +02:00
2017-12-05 15:38:03 +01:00
2018-07-03 18:19:46 +02:00
2018-06-21 22:08:09 +08:00
2018-07-03 18:19:46 +02:00
2016-07-27 11:34:25 +02:00
2018-06-27 16:33:31 +03:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-07-13 09:46:30 -06:00
2018-10-03 11:19:12 +02:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-07-12 21:21:37 +08:00
2018-07-03 18:19:46 +02:00
2018-07-03 18:19:46 +02:00
2018-08-02 18:34:04 +02:00
2018-08-02 18:34:34 +02:00
2018-07-24 11:16:11 +02:00
2017-01-11 19:24:19 +02:00
2018-09-06 13:04:23 +02:00
2018-07-03 18:19:46 +02:00