aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r--src/serd_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h
index 7adf1567..4fa2a2c5 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -121,4 +121,10 @@ serd_strlen(const uint8_t* utf8, size_t* out_n_bytes)
return n_chars;
}
+static inline void
+serd_node_free(SerdNode* node)
+{
+ free((uint8_t*)node->buf); // FIXME: ick, const cast
+}
+
#endif // SERD_INTERNAL_H