From: Darrick J. Wong Date: Thu, 4 Jan 2018 19:58:29 +0000 (-0600) Subject: libhandle: zap fdhash in fshandle_destroy X-Git-Tag: v4.15.0-rc1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ad4d3babd3e832f2c638c68da00de9947fb116c;p=thirdparty%2Fxfsprogs-dev.git 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 Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/libhandle/handle.c b/libhandle/handle.c index e6971dd30..878d14d85 100644 --- a/libhandle/handle.c +++ b/libhandle/handle.c @@ -73,6 +73,7 @@ fshandle_destroy(void) free(h); h = nexth; } + fdhash_head = NULL; } int