]> git.kaiwu.me - njs.git/commitdiff
Fixed memory freeing in njs_vm_compile().
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 11 Jun 2022 07:15:29 +0000 (00:15 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Sat, 11 Jun 2022 07:15:29 +0000 (00:15 -0700)
src/njs_vm.c

index 2c0099fa13d8d51014ba3a24d1336df1acf4b062..c1e422bd38ab874d7072005b2e64e1622a2a7e3e 100644 (file)
@@ -214,8 +214,6 @@ njs_vm_compile(njs_vm_t *vm, u_char **start, u_char *end)
 
                 *new++ = *global++;
             }
-
-            njs_mp_free(vm->mem_pool, global);
         }
     }