re-organize defines / few bug fix

This commit is contained in:
2024-02-10 09:16:59 +01:00
parent 95cc25a2c2
commit 4f25c1416d
12 changed files with 375 additions and 348 deletions

View File

@@ -24,7 +24,6 @@
#undef safe_malloc
#undef safe_free
#define safe_malloc(size) ({ \
void *_ret = malloc(size); \
bug_on(_ret == NULL); \
@@ -33,7 +32,7 @@
#define safe_free(ptr) do { \
bug_on(ptr == NULL); \
free(_ret); \
free(ptr); \
} while (0)
#endif /* UTIL_H */