realloc() has that horrible overloaded free semantic when size is 0:
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 30 Jul 2009 20:10:33 +0000 (13:10 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2009 20:10:33 +0000 (13:10 -0700)
commit36c0f0f99aee940668b84c2c70b27f4993d9e6ee
tree7228468014803d7b21f05b3b048e02d8bc349b80
parenta88c281ddc52bfb20cf65245a703233426bb4592
realloc() has that horrible overloaded free semantic when size is 0:
current code does a free of the old record in this case, then fail.
lib/tdb/common/tdb.c