Index: src/ResolvExpr/Unify.cc
===================================================================
--- src/ResolvExpr/Unify.cc	(revision c5708066100c6beeef453c6d3f97c1d266f2cd50)
+++ src/ResolvExpr/Unify.cc	(revision 92a6e022cf89c5cc1605316de15a9f18851d3cf6)
@@ -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 ) ) {
