]> git.sur5r.net Git - bacula/bacula/commitdiff
Lets free the variable in the right part of the loop.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 15 Oct 2009 19:37:22 +0000 (21:37 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Thu, 15 Oct 2009 19:37:22 +0000 (21:37 +0200)
bacula/src/filed/xattr.c

index e4289eb488247d7bdcfd3219dfcb658b5cf8db19..dc645faef1189c0287d91cacbd2507c067ad225f 100644 (file)
@@ -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.
        */