diff options
author | David Robillard <d@drobilla.net> | 2011-03-07 20:12:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-07 20:12:42 +0000 |
commit | 567b4cc4fec495044e2e03d9f4d157fe65f3022a (patch) | |
tree | 173ae1c7103546d4e0ad693210acae669b852e0c /src/value.c | |
parent | 690ca2d4559a0cb63c41e7175c26a711100f5bc5 (diff) | |
download | lilv-567b4cc4fec495044e2e03d9f4d157fe65f3022a.tar.gz lilv-567b4cc4fec495044e2e03d9f4d157fe65f3022a.tar.bz2 lilv-567b4cc4fec495044e2e03d9f4d157fe65f3022a.zip |
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3052 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/value.c')
-rw-r--r-- | src/value.c | 6 |
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); } } |