]> git.kaiwu.me - njs.git/commitdiff
A surplus check has been removed.
authorIgor Sysoev <igor@sysoev.ru>
Mon, 31 Oct 2016 12:56:49 +0000 (15:56 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 31 Oct 2016 12:56:49 +0000 (15:56 +0300)
Found by Coverity Scan.

njs/njscript.c

index 4c80f5bb7be4e9fa01b756c2bd2b77d2b2365c3a..910686cccae64ab24de5503a464f3a6e96bf8615 100644 (file)
@@ -346,7 +346,7 @@ njs_vm_clone(njs_vm_t *vm, nxt_mem_cache_pool_t *mcp, void **external)
 
 fail:
 
-    if (mcp == NULL && nmcp != NULL) {
+    if (mcp == NULL) {
         nxt_mem_cache_pool_destroy(nmcp);
     }