Index: src/ResolvExpr/Unify.cc
===================================================================
--- src/ResolvExpr/Unify.cc	(revision ae265b558be3fff8be98b3b154186bea3d2f65c8)
+++ src/ResolvExpr/Unify.cc	(revision ba417e2174cff9c72bd1cdf6de9e9ade37ab35c3)
@@ -167,5 +167,6 @@
 		newFirst ->qualifiers = {};
 		newSecond->qualifiers = {};
-		#warning memory leak
+		ast::ptr< ast::Type > t1_(newFirst );
+		ast::ptr< ast::Type > t2_(newSecond);
 
 		return unifyExact(
@@ -1195,5 +1196,6 @@
 		t1->qualifiers = {};
 		t2->qualifiers = {};
-		#warning memory leak
+		ast::ptr< ast::Type > t1_(t1);
+		ast::ptr< ast::Type > t2_(t2);
 
 		if ( unifyExact( t1, t2, env, need, have, open, widen, symtab ) ) {
