diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2012-05-19 19:09:27 +0200 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2012-05-19 19:09:27 +0200 |
commit | ff5528f04eb982b12c7e54faf9b2600a8d08eecf (patch) | |
tree | 76d5df16e7a8b034a7fe102528a7299607ae2659 /libtac | |
parent | 77738201331c07062d0c9a145f2c2b1cd17897fe (diff) | |
download | pam_tacplus-ff5528f04eb982b12c7e54faf9b2600a8d08eecf.tar.gz pam_tacplus-ff5528f04eb982b12c7e54faf9b2600a8d08eecf.zip |
Explicity setting *attr to NULL after free(), thanks to Anthony Low
Diffstat (limited to 'libtac')
-rw-r--r-- | libtac/lib/attrib.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |