diff --git a/src/util/sandesha2_utils.c b/src/util/sandesha2_utils.c
index 16c015d..48f0a19 100644
--- a/src/util/sandesha2_utils.c
+++ b/src/util/sandesha2_utils.c
@@ -248,7 +248,6 @@
                 axutil_allocator_switch_to_local_pool(env->allocator);
                 return NULL;
             }
-            axutil_allocator_switch_to_local_pool(env->allocator);
         }   
         else
         {