summaryrefslogtreecommitdiffstats
path: root/src/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.c')
-rw-r--r--src/value.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/value.c b/src/value.c
index b37050d..09a0720 100644
--- a/src/value.c
+++ b/src/value.c
@@ -219,11 +219,9 @@ void
slv2_value_free(SLV2Value val)
{
if (val) {
- if (val->type == SLV2_VALUE_URI)
- slv2_node_free(val->val.uri_val);
- else
+ if (val->type != SLV2_VALUE_URI) {
free(val->str_val);
-
+ }
free(val);
}
}