diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-04 13:58:29 -0600 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2018-01-04 13:58:29 -0600 |
commit | 1ad4d3babd3e832f2c638c68da00de9947fb116c (patch) | |
tree | 475ebd17a83ffe9ecb379716af3ac17c6b79d024 | |
parent | 851c5d1133547fac332955f3ae9ba5a04d38abf6 (diff) | |
download | xfsprogs-dev-1ad4d3babd3e832f2c638c68da00de9947fb116c.tar.gz |
libhandle: zap fdhash in fshandle_destroy
Set fdhash_head to zero once we've destroyed the handle list to avoid
dangling pointer problems.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | libhandle/handle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhandle/handle.c b/libhandle/handle.c index e6971dd306..878d14d853 100644 --- a/libhandle/handle.c +++ b/libhandle/handle.c @@ -73,6 +73,7 @@ fshandle_destroy(void) free(h); h = nexth; } + fdhash_head = NULL; } int |