]> git.sur5r.net Git - bacula/bacula/commitdiff
Use bfree_and_null
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 15 Oct 2009 19:18:47 +0000 (21:18 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Thu, 15 Oct 2009 19:18:47 +0000 (21:18 +0200)
bacula/src/filed/xattr.c

index 0120c7b3790b5ca42ff1abfe8b717ef6316c54bc..e4289eb488247d7bdcfd3219dfcb658b5cf8db19 100644 (file)
@@ -857,8 +857,7 @@ static bxattr_exit_code bsd_build_xattr_streams(JCR *jcr, FF_PKT *ff_pkt)
          xattr_value_list->append(current_xattr);
          xattr_count++;
 
-         free(current_attrnamespace);
-         current_attrnamespace = (char *)NULL;
+         bfree_and_null(current_attrnamespace);
       }
 
       /*