[master] b94e12a58 plug insignificant vcc leak

Nils Goroll nils.goroll at uplex.de
Wed Dec 23 11:56:06 UTC 2020

commit b94e12a58a248f9f976398aeaa04720a70267c40
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Dec 23 12:54:54 2020 +0100

    plug insignificant vcc leak
    reported by coverity

diff --git a/lib/libvcc/vcc_acl.c b/lib/libvcc/vcc_acl.c
index 795a7571d..47c0b4ef2 100644
--- a/lib/libvcc/vcc_acl.c
+++ b/lib/libvcc/vcc_acl.c
@@ -277,6 +277,7 @@ vcc_acl_try_getaddrinfo(struct vcc *tl, struct acl_e *ae)
 		    "Mask (/%u) specified, but string resolves to"
 		    " both IPv4 and IPv6 addresses.\n", ae->mask);
 		vcc_ErrWhere(tl, ae->t_mask);
+		freeaddrinfo(res0);

More information about the varnish-commit mailing list