diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 16:43:22 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 16:43:22 +0100 |
commit | 504d231429e2a5d2b31a876645b590bb4a6a03f6 (patch) | |
tree | 415c7d89cfcc8cdb5802a9ae0bdbd1bb71ca823c /backend/util.h | |
parent | 71380426426dffe787d1704a8fd639c4b1bbfad3 (diff) |
WIP battle the memory leaks
Diffstat (limited to 'backend/util.h')
-rw-r--r-- | backend/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/util.h b/backend/util.h index 1889698..44d9a49 100644 --- a/backend/util.h +++ b/backend/util.h @@ -1,6 +1,11 @@ #pragma once +#include "List.h" + void safe_free(void * & ptr); void safe_free(const char * & ptr); +template <typename T> +void safe_free(List<T *> & ptr_list); +#include "util.hpp" |