]> git.kaiwu.me - njs.git/commitdiff
Fixed typos introduced in 99b9f83e4d4d.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 31 Jan 2023 01:43:59 +0000 (17:43 -0800)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 31 Jan 2023 01:43:59 +0000 (17:43 -0800)
Found by Coverity (CID 152059715205981520599).

external/njs_xml_module.c

index a8c8a1d00d8709eefcc570e4875b44f40f316aea..d775ccc96e61207de0a5c7a53529b43fdc64b54f 100644 (file)
@@ -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;
     }