]> git.kaiwu.me - njs.git/commitdiff
Released temporary template literal memory.
authorVadim Zhestikov <v.zhestikov@f5.com>
Wed, 25 Jun 2025 18:50:25 +0000 (11:50 -0700)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Thu, 3 Jul 2025 16:34:25 +0000 (09:34 -0700)
src/njs_vmcode.c

index ebca15e3418edfe4425f8e0e5f441b6f383fd02c..ba6df7d831642c649db6b93e2afe01f4063dad78 100644 (file)
@@ -2048,6 +2048,8 @@ njs_vmcode_template_literal(njs_vm_t *vm, njs_value_t *retval)
         return ret;
     }
 
+    njs_array_destroy(vm, array);
+
     return sizeof(njs_vmcode_template_literal_t);
 }