]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
suppress cppcheck warning: leakNoVarFunctionCall
authorMark Andrews <marka@isc.org>
Tue, 1 Oct 2019 10:04:17 +0000 (20:04 +1000)
committerMark Andrews <marka@isc.org>
Tue, 1 Oct 2019 23:25:00 +0000 (09:25 +1000)
lib/dns/dst_api.c
lib/isc/mem.c
lib/isc/tests/ht_test.c
lib/isc/tests/mem_test.c
lib/lwres/getrrset.c

index 54c4955498d99c9aae7a220c33747c5e584c98b5..7e7b0195a019240fe243a3fea71877c8c7104b2d 100644 (file)
@@ -134,6 +134,7 @@ default_memalloc(void *arg, size_t size) {
        UNUSED(arg);
        if (size == 0U)
                size = 1;
+       /* cppcheck-suppress leakNoVarFunctionCall */
        return (malloc(size));
 }
 
index d73ebea28635e97ef980d28e76a0ccd4c83fe7cc..145a02ee9e67775fefb03ed20d7e4b9b238cc122 100644 (file)
@@ -868,6 +868,7 @@ default_memalloc(void *arg, size_t size) {
                size = 1;
        }
 
+       /* cppcheck-suppress leakNoVarFunctionCall */
        return (malloc(size));
 }
 
index f8998a8460aa4c89a4840aa55cada805c7172eef..9a9cb58edc44701c395f08813e02a7386f66854d 100644 (file)
@@ -39,6 +39,7 @@ default_memalloc(void *arg, size_t size) {
        if (size == 0U) {
                size = 1;
        }
+       /* cppcheck-suppress leakNoVarFunctionCall */
        return (malloc(size));
 }
 
index f56f385557ab1c545b65852ec76697204b6203c3..0b63bed8db1eecb8e7b801c69b9c10e000491dfd 100644 (file)
@@ -60,6 +60,7 @@ default_memalloc(void *arg, size_t size) {
        if (size == 0U) {
                size = 1;
        }
+       /* cppcheck-suppress leakNoVarFunctionCall */
        return (malloc(size));
 }
 
index 8f43eb8a60495f051c986bfa46bf01f53d375988..c00d5e83d9dfb4f8f288742380a5c091dc100930 100644 (file)
@@ -9,8 +9,6 @@
  * information regarding copyright ownership.
  */
 
-/* $Id: getrrset.c,v 1.18 2007/06/19 23:47:22 tbox Exp $ */
-
 /*! \file */
 
 /**
@@ -119,6 +117,7 @@ static void *
 sane_malloc(size_t size) {
        if (size == 0U)
                size = 1;
+       /* cppcheck-suppress leakNoVarFunctionCall */
        return (malloc(size));
 }