Add __attribute((malloc)) to sodium_{allocarray,malloc}()
This commit is contained in:
parent
094dac655e
commit
9a07e480f2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user