diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sratom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sratom.c b/src/sratom.c index 7b00557..f3c7be9 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -97,8 +97,10 @@ sratom_new(LV2_URID_Map* map) void sratom_free(Sratom* sratom) { - serd_node_free(&sratom->base_uri); - free(sratom); + if (sratom) { + serd_node_free(&sratom->base_uri); + free(sratom); + } } void |