Added missing njs_vm_destroy() calls in CLI.
diff --git a/src/njs_shell.c b/src/njs_shell.c
index 8c5cf67..1a49f04 100644
--- a/src/njs_shell.c
+++ b/src/njs_shell.c
@@ -282,6 +282,7 @@
             command.start = (u_char *) opts.command;
             command.length = njs_strlen(opts.command);
             ret = njs_process_script(&opts, vm_options.external, &command);
+            njs_vm_destroy(vm);
         }
 
     } else {
@@ -498,6 +499,8 @@
         size = sb.st_size;
     }
 
+    vm = NULL;
+
     source.length = 0;
     source.start = realloc(NULL, size);
     if (source.start == NULL) {
@@ -577,6 +580,10 @@
 
 done:
 
+    if (vm != NULL) {
+        njs_vm_destroy(vm);
+    }
+
     if (source.start != NULL) {
         free(source.start);
     }
@@ -938,6 +945,8 @@
         free(line.start);
     }
 
+    njs_vm_destroy(vm);
+
     return NJS_OK;
 }