From 1b1d8f8395c23e91734b09a313f96b762dce2c6a Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sun, 11 Oct 2009 20:23:32 +0200 Subject: [PATCH] Reset the variable after freeing it so we don't free it again in the bail_out target. --- bacula/src/filed/xattr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bacula/src/filed/xattr.c b/bacula/src/filed/xattr.c index 0353053b1b..873c16feb3 100644 --- a/bacula/src/filed/xattr.c +++ b/bacula/src/filed/xattr.c @@ -857,6 +857,7 @@ static bxattr_exit_code bsd_build_xattr_streams(JCR *jcr, FF_PKT *ff_pkt) xattr_count++; free(current_attrnamespace); + current_attrnamespace = (char *)NULL; } /* -- 2.39.5