Add __attribute((malloc)) to sodium_{allocarray,malloc}()

This commit is contained in:
Frank Denis 2015-11-01 14:36:16 +01:00
parent 094dac655e
commit 9a07e480f2

View File

@ -95,11 +95,11 @@ int sodium_munlock(void * const addr, const size_t len);
SODIUM_EXPORT
void *sodium_malloc(const size_t size)
__attribute__ ((warn_unused_result));
__attribute__ ((malloc));
SODIUM_EXPORT
void *sodium_allocarray(size_t count, size_t size)
__attribute__ ((warn_unused_result));
__attribute__ ((malloc));
SODIUM_EXPORT
void sodium_free(void *ptr);