[master] ce7b751 Zero the pointer when we free a miniobj
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jan 19 10:58:56 CET 2015
commit ce7b751dd0657ad9f4e13cdaef07a209e353c1ab
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jan 19 09:57:53 2015 +0000
Zero the pointer when we free a miniobj
diff --git a/include/miniobj.h b/include/miniobj.h
index 746f606..3de4091 100644
--- a/include/miniobj.h
+++ b/include/miniobj.h
@@ -22,6 +22,7 @@
do { \
(to)->magic = (0); \
free(to); \
+ to = NULL; \
} while (0)
#define VALID_OBJ(ptr, type_magic) \
More information about the varnish-commit
mailing list