2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

add coverity[+free : arg-1] directive

This commit is contained in:
Mark Andrews
2012-11-02 11:16:32 +11:00
parent 8f4572372c
commit d9baadbb0c

View File

@@ -745,6 +745,7 @@ check_overrun(void *mem, size_t size, size_t new_size) {
} }
#endif #endif
/* coverity[+free : arg-1] */
static inline void static inline void
mem_putunlocked(isc__mem_t *ctx, void *mem, size_t size) { mem_putunlocked(isc__mem_t *ctx, void *mem, size_t size) {
size_t new_size = quantize(size); size_t new_size = quantize(size);
@@ -821,6 +822,7 @@ mem_get(isc__mem_t *ctx, size_t size) {
/*! /*!
* Perform a free, doing memory filling and overrun detection as necessary. * Perform a free, doing memory filling and overrun detection as necessary.
*/ */
/* coverity[+free : arg-1] */
static inline void static inline void
mem_put(isc__mem_t *ctx, void *mem, size_t size) { mem_put(isc__mem_t *ctx, void *mem, size_t size) {
#if ISC_MEM_CHECKOVERRUN #if ISC_MEM_CHECKOVERRUN