infra: use new SET_PTR_NULL

This commit is contained in:
Thomas Schoebel-Theuer 2022-07-11 15:08:09 +02:00
parent 5bad7d5d46
commit 60bc655293
1 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ void *__mark_ptr_nonnull(void *_ptr)
do { \
if (_data_) { \
_brick_mem_free(_data_, __LINE__); \
(_data_) = NULL; \
SET_PTR_NULL(_data_); \
} \
} while(0)
@ -196,7 +196,7 @@ extern void _brick_mem_free(void *data, int line);
do { \
if (_data_) { \
_brick_string_free(_data_, __LINE__); \
(_data_) = NULL; \
SET_PTR_NULL(_data_); \
} \
} while(0)
@ -218,7 +218,7 @@ extern void _brick_string_free(const char *data, int line);
do { \
if (_data_) { \
_brick_block_free((_data_), (_len_), __LINE__); \
(_data_) = NULL; \
SET_PTR_NULL(_data_); \
} \
} while(0)