systemverilog-plugin: cleanup

Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
diff --git a/systemverilog-plugin/UhdmAst.cc b/systemverilog-plugin/UhdmAst.cc
index f0dbade..d1c604d 100644
--- a/systemverilog-plugin/UhdmAst.cc
+++ b/systemverilog-plugin/UhdmAst.cc
@@ -311,7 +311,6 @@
     // return range from *current* selected range
     // in the end, it results in whole selected range
     id->basic_prep = true;
-    result->dumpAst(NULL, "> ");
     return result;
 }
 
@@ -3830,6 +3829,7 @@
     // calls another function that is not imported in the calling scope.
     if (vpiHandle function_h = vpi_handle(vpiFunction, obj_h)) {
         current_node->str = get_name(function_h, true);
+        vpi_release_handle(function_h);
     }
 }