From 5e911a20b81aeb171983aab2215aa75c77111e86 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Thu, 15 Oct 2009 21:37:22 +0200 Subject: [PATCH] Lets free the variable in the right part of the loop. --- bacula/src/filed/xattr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. */ -- 2.39.5