From f71c4e16e913f660977526f0ef8d2acdf458d7c9 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 18 Jan 2011 21:23:50 +0200 Subject: Add alloc_size and malloc attributes to a few functions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Cristian Rodríguez for the original patch. --- src/liblzma/common/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liblzma/common') 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); -- cgit v1.2.3