[master] 10d6c120f Reapply free_obj.cocci now that coccinelle can parse more
Nils Goroll
nils.goroll at uplex.de
Tue Jul 11 19:41:05 UTC 2023
commit 10d6c120f3cc703297e0a1b4ea7687a236bc9957
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Jul 11 21:34:30 2023 +0200
Reapply free_obj.cocci now that coccinelle can parse more
diff --git a/bin/varnishd/cache/cache_backend.c b/bin/varnishd/cache/cache_backend.c
index ba3b54c08..e576bca04 100644
--- a/bin/varnishd/cache/cache_backend.c
+++ b/bin/varnishd/cache/cache_backend.c
@@ -636,7 +636,7 @@ via_endpoint(const struct vrt_endpoint *vep, const struct suckaddr *sa,
ret = VRT_Endpoint_Clone(nvep);
CHECK_OBJ_NOTNULL(ret, VRT_ENDPOINT_MAGIC);
VSB_destroy(&preamble);
- free(nvep);
+ FREE_OBJ(nvep);
return (ret);
}
More information about the varnish-commit
mailing list