diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 20:31:18 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 20:31:18 +0100 |
commit | d8daa3e045ca2f41edcbed533bc5a9fef1363a17 (patch) | |
tree | 6a4c0883d05607476b609e68bcac7d854e281aea /backend/util.cpp | |
parent | 6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (diff) |
print to backend
Diffstat (limited to 'backend/util.cpp')
-rw-r--r-- | backend/util.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/util.cpp b/backend/util.cpp index 85b6950..afac06e 100644 --- a/backend/util.cpp +++ b/backend/util.cpp @@ -15,4 +15,8 @@ void safe_free(char * & ptr) { auto x = static_cast<void *>(ptr); safe_free(x); } +void safe_free(FILE * & ptr) { + auto x = static_cast<void *>(ptr); + safe_free(x); +} |