aboutsummaryrefslogtreecommitdiffstats
path: root/tar/test/test_option_xattrs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tar/test/test_option_xattrs.c')
-rw-r--r--tar/test/test_option_xattrs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tar/test/test_option_xattrs.c b/tar/test/test_option_xattrs.c
index 5095ce336d6c..bce8a94e4dd2 100644
--- a/tar/test/test_option_xattrs.c
+++ b/tar/test/test_option_xattrs.c
@@ -33,7 +33,7 @@ DEFINE_TEST(test_option_xattrs)
const char *testattr = "user.libarchive.test";
const char *testval = "testval";
- const void *readval;
+ void *readval;
size_t size;
int r;
@@ -62,6 +62,7 @@ DEFINE_TEST(test_option_xattrs)
readval = getXattr("xattrs_xattrs/f", testattr, &size);
if(assertEqualInt(size, strlen(testval) + 1) != 0)
assertEqualMem(readval, testval, size);
+ free(readval);
/* Extract xattrs without xattrs */
assertMakeDir("xattrs_noxattrs", 0755);