diff --git a/src/dgraph/pool.cpp b/src/dgraph/pool.cpp
index d7fa5f6d7b4420b48489d0ab5d84cd72a3b4f342..de105970890a5ce09fbef854fe36049e3044c95b 100644
--- a/src/dgraph/pool.cpp
+++ b/src/dgraph/pool.cpp
@@ -78,6 +78,7 @@ PoolStorage::
       dgDEBUG(15) << "Delete \""
 		   << (iter->first) <<"\""<<std::endl;
       Entity* entity = iter->second;
+      deregisterEntity(iter);
       delete (entity);
     }
   instance_ = 0;