]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
suppress cppcheck error: memleak he.h_name
authorMark Andrews <marka@isc.org>
Tue, 1 Oct 2019 11:04:37 +0000 (21:04 +1000)
committerMark Andrews <marka@isc.org>
Tue, 1 Oct 2019 23:25:00 +0000 (09:25 +1000)
lib/lwres/getipnode.c

index 25b8c62ca8bd50c65ff86a4a921e3ac78070142b..e7e9fc399ca9baa0c57725f0b5e70b7fec1a5369 100644 (file)
@@ -973,6 +973,7 @@ copyandmerge(struct hostent *he1, struct hostent *he2, int af, int *error_num)
         */
        he->h_addrtype = af;
        he->h_length = (af == AF_INET) ? INADDRSZ : IN6ADDRSZ;
+       /* cppcheck-suppress memleak */
        return (he);
 
  cleanup2: