From de6ebc97a6fdbab15e7c16a0f09dead0151cb58b Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Mon, 30 Jan 2023 17:43:59 -0800 Subject: [PATCH] Fixed typos introduced in 99b9f83e4d4d. Found by Coverity (CID 1520597, 1520598, 1520599). --- external/njs_xml_module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external/njs_xml_module.c b/external/njs_xml_module.c index a8c8a1d0..d775ccc9 100644 --- a/external/njs_xml_module.c +++ b/external/njs_xml_module.c @@ -1004,7 +1004,7 @@ njs_xml_ext_canonicalization(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, nodes = xmlXPathNodeSetCreate(current); if (njs_slow_path(nodes == NULL)) { - njs_vm_memory_pool(vm); + njs_vm_memory_error(vm); goto error; } @@ -1184,7 +1184,7 @@ njs_xml_nset_create(njs_vm_t *vm, xmlDoc *doc, xmlNodeSet *nodes, nset = njs_mp_zalloc(njs_vm_memory_pool(vm), sizeof(njs_xml_nset_t)); if (njs_slow_path(nset == NULL)) { - njs_vm_memory_pool(vm); + njs_vm_memory_error(vm); return NULL; } @@ -1213,7 +1213,7 @@ njs_xml_nset_children(njs_vm_t *vm, xmlNode *parent) nodes = xmlXPathNodeSetCreate(parent); if (njs_slow_path(nodes == NULL)) { - njs_vm_memory_pool(vm); + njs_vm_memory_error(vm); return NULL; } -- 2.47.3