From ff5528f04eb982b12c7e54faf9b2600a8d08eecf Mon Sep 17 00:00:00 2001 From: Jeroen Nijhof Date: Sat, 19 May 2012 19:09:27 +0200 Subject: Explicity setting *attr to NULL after free(), thanks to Anthony Low --- libtac/lib/attrib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtac/lib/attrib.c b/libtac/lib/attrib.c index adba6d7..1257ff6 100644 --- a/libtac/lib/attrib.c +++ b/libtac/lib/attrib.c @@ -85,4 +85,6 @@ void tac_free_attrib(struct tac_attrib **attr) { free(a->attr); free(a); } while (b != NULL); + + *attr = NULL; } -- cgit v1.2.3