]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix problem with freeing the data after we switched to use an alist some months ago.
authorMarco van Wieringen <mvw@planets.elm.net>
Sun, 27 Dec 2009 10:39:32 +0000 (11:39 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Sun, 27 Dec 2009 10:39:32 +0000 (11:39 +0100)
Again great to have regression testing as that shows these rather obvious errors.

bacula/src/filed/xattr.c

index 24c75c5e2b61ed526b1783e8388d8b1fc7fc7ab8..6227fd3b84c86ef159abec52da7a38c4ee3a7c26 100644 (file)
@@ -145,6 +145,8 @@ static void xattr_drop_internal_table(alist *xattr_value_list)
 
       if (current_xattr->value_length > 0)
          free(current_xattr->value);
+
+      free(current_xattr);
    }
 
    delete xattr_value_list;