diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -85,6 +85,11 @@ lilv_node_new(LilvWorld* world, LilvNodeType type, const char* str) break; } + if (!val->node) { + free(val); + return NULL; + } + return val; } |