aboutsummaryrefslogtreecommitdiff
path: root/backend/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/util.cpp')
-rw-r--r--backend/util.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/util.cpp b/backend/util.cpp
index 4a55f63..85b6950 100644
--- a/backend/util.cpp
+++ b/backend/util.cpp
@@ -11,4 +11,8 @@ void safe_free(const char * & ptr) {
auto x = static_cast<void *>(const_cast<char *>(ptr));
safe_free(x);
}
+void safe_free(char * & ptr) {
+ auto x = static_cast<void *>(ptr);
+ safe_free(x);
+}