aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2017-04-03 12:22:55 +0000
committerMartin Matuska <mm@FreeBSD.org>2017-04-03 12:22:55 +0000
commit659b8836cb5cd1ff479c8644211f190e1ad9619d (patch)
tree85519890ca3e772cf952aa3606b405a32fddb330 /libarchive
parent838c5c42c203c680c01b759d324976dc68e6199b (diff)
downloadsrc-659b8836cb5cd1ff479c8644211f190e1ad9619d.tar.gz
src-659b8836cb5cd1ff479c8644211f190e1ad9619d.zip
Update vendor/libarchive to git 500a62194a1faafaffd286f6da50633e86587f3c
Vendor changes (FreeBSD-related): Plug memory leaks in xattr tests.
Notes
Notes: svn path=/vendor/libarchive/dist/; revision=316455
Diffstat (limited to 'libarchive')
-rw-r--r--libarchive/test/test_xattr_platform.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libarchive/test/test_xattr_platform.c b/libarchive/test/test_xattr_platform.c
index ebb265edb382..df3f81a5b3fd 100644
--- a/libarchive/test/test_xattr_platform.c
+++ b/libarchive/test/test_xattr_platform.c
@@ -35,6 +35,7 @@ DEFINE_TEST(test_xattr_platform)
struct archive_entry *ae;
const char *name;
const void *value;
+ void *rvalue;
size_t size, insize;
int e, r;
const char *attrname = "user.libarchive.test";
@@ -95,8 +96,9 @@ DEFINE_TEST(test_xattr_platform)
assertEqualIntA(a, ARCHIVE_OK, archive_write_close(a));
assertEqualInt(ARCHIVE_OK, archive_write_free(a));
- value = getXattr("writetest", attrname, &insize);
+ rvalue = getXattr("writetest", attrname, &insize);
if (assertEqualInt(insize, strlen(writeval) + 1) != 0)
- assertEqualMem(value, writeval, insize);
+ assertEqualMem(rvalue, writeval, insize);
+ free(rvalue);
#endif
}