diff options
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -143,5 +143,8 @@ SERD_API void serd_node_free(SerdNode* node) { - free((uint8_t*)node->buf); + if (node->buf) { + free((uint8_t*)node->buf); + node->buf = NULL; + } } |