From 60bc655293e4b1ab31c555ced24057748476c255 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Mon, 11 Jul 2022 15:08:09 +0200 Subject: [PATCH] infra: use new SET_PTR_NULL --- kernel/brick_mem.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/brick_mem.h b/kernel/brick_mem.h index 6b5cc990..207f3c69 100644 --- a/kernel/brick_mem.h +++ b/kernel/brick_mem.h @@ -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)