From: Dmitry Volyntsev Date: Tue, 31 Jan 2023 01:43:59 +0000 (-0800) Subject: Fixed typos introduced in 99b9f83e4d4d. X-Git-Tag: 0.7.10~9 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=de6ebc97a6fdbab15e7c16a0f09dead0151cb58b;p=njs.git Fixed typos introduced in 99b9f83e4d4d. Found by Coverity (CID 1520597, 1520598, 1520599). --- 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; }