From: Victor Grishchenko Date: Thu, 4 Feb 2010 10:24:35 +0000 (+0100) Subject: being consistent: realloc -> free X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=449e1850b7f0aced709182a3dd91f1fba59a14b5;p=swift-upb.git being consistent: realloc -> free --- diff --git a/bins.h b/bins.h index 389a06f..c4737c3 100644 --- a/bins.h +++ b/bins.h @@ -31,7 +31,7 @@ public: binmap_t(const binmap_t& b); /** Destructor. */ - ~binmap_t() { delete [] cells; } + ~binmap_t() { if (cells) free(cells); } /** Get value for the bin. */ uint16_t get (bin64_t bin);