diff options
author | Martin Matuska <martin@matuska.org> | 2017-04-03 14:09:53 +0200 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2017-04-03 14:09:53 +0200 |
commit | 500a62194a1faafaffd286f6da50633e86587f3c (patch) | |
tree | 0990588571c59d23b70f8f1587113759094ffa69 /test_utils | |
parent | e9eef34719c4bc8cfa2e3cc568eae7afe763a2c3 (diff) | |
download | libarchive-500a62194a1faafaffd286f6da50633e86587f3c.tar.gz |
Plug memory leaks in xattr and acl tests.
Detected with libasan on Linux.
Diffstat (limited to 'test_utils')
-rw-r--r-- | test_utils/test_common.h | 2 | ||||
-rw-r--r-- | test_utils/test_main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test_utils/test_common.h b/test_utils/test_common.h index fa726bff..1425dd84 100644 --- a/test_utils/test_common.h +++ b/test_utils/test_common.h @@ -348,7 +348,7 @@ int canNodump(void); int setTestAcl(const char *path); /* Get extended attribute */ -const void *getXattr(const char *, const char *, size_t *); +void *getXattr(const char *, const char *, size_t *); /* Set extended attribute */ int setXattr(const char *, const char *, const void *, size_t); diff --git a/test_utils/test_main.c b/test_utils/test_main.c index 36dfc82f..d7404593 100644 --- a/test_utils/test_main.c +++ b/test_utils/test_main.c @@ -2451,8 +2451,8 @@ canNodump(void) return (0); } -/* Get extended attribute from a path */ -const void * +/* Get extended attribute value from a path */ +void * getXattr(const char *path, const char *name, size_t *sizep) { void *value = NULL; |