]> p2p-next.cs.pub.ro Git - swift-upb.git/commitdiff
being consistent: realloc -> free
authorVictor Grishchenko <victor.grishchenko@gmail.com>
Thu, 4 Feb 2010 10:24:35 +0000 (11:24 +0100)
committerVictor Grishchenko <victor.grishchenko@gmail.com>
Thu, 4 Feb 2010 10:24:35 +0000 (11:24 +0100)
bins.h

diff --git a/bins.h b/bins.h
index 389a06fc097cbee99b88e586d2e246025fa928d5..c4737c39c97109b7c11821a9f6b0da03381faa64 100644 (file)
--- 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);