From: Marco van Wieringen Date: Thu, 15 Oct 2009 19:37:22 +0000 (+0200) Subject: Lets free the variable in the right part of the loop. X-Git-Tag: Release-7.0.0~2602^2~1^2~4^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a5571e4f4e7b41f508ac63020b5c075a0d22471;p=bacula%2Fbacula Lets free the variable in the right part of the loop. --- diff --git a/bacula/src/filed/xattr.c b/bacula/src/filed/xattr.c index e4289eb488..dc645faef1 100644 --- a/bacula/src/filed/xattr.c +++ b/bacula/src/filed/xattr.c @@ -857,9 +857,13 @@ static bxattr_exit_code bsd_build_xattr_streams(JCR *jcr, FF_PKT *ff_pkt) xattr_value_list->append(current_xattr); xattr_count++; - bfree_and_null(current_attrnamespace); } + /* + * Drop the local copy of the current_attrnamespace. + */ + bfree_and_null(current_attrnamespace); + /* * We are done with this xattr list. */