diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-01-18 21:23:50 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-01-18 21:23:50 +0200 |
commit | f71c4e16e913f660977526f0ef8d2acdf458d7c9 (patch) | |
tree | cdcb4d197fffd82e6631fd8efe7ce73e7f753797 /src/liblzma/common/common.h | |
parent | Scripts: Fix gzip and bzip2 support in xzdiff. (diff) | |
download | xz-f71c4e16e913f660977526f0ef8d2acdf458d7c9.tar.xz |
Add alloc_size and malloc attributes to a few functions.
Thanks to Cristian RodrÃguez for the original patch.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/common/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/common.h b/src/liblzma/common/common.h index 3a85168f..b8194323 100644 --- a/src/liblzma/common/common.h +++ b/src/liblzma/common/common.h @@ -205,7 +205,7 @@ struct lzma_internal_s { /// Allocates memory extern void *lzma_alloc(size_t size, lzma_allocator *allocator) - lzma_attribute((malloc)); + lzma_attribute((malloc)) lzma_attr_alloc_size(1); /// Frees memory extern void lzma_free(void *ptr, lzma_allocator *allocator); |