diff options
author | David Robillard <d@drobilla.net> | 2019-04-14 11:11:24 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-14 11:18:00 +0200 |
commit | ac237a888cbd2ffe8446adc8a51482e603ca3765 (patch) | |
tree | d5521f5993fe668e446fac316fa447e12ee3d749 /src/node.c | |
parent | 1a80c081cc2f3bf38f01512734c0001e4a1d295e (diff) | |
download | lilv-ac237a888cbd2ffe8446adc8a51482e603ca3765.tar.gz lilv-ac237a888cbd2ffe8446adc8a51482e603ca3765.tar.bz2 lilv-ac237a888cbd2ffe8446adc8a51482e603ca3765.zip |
Fix Windows cross-library malloc/free errors
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -283,11 +283,13 @@ lilv_node_get_turtle_token(const LilvNode* value) break; case LILV_VALUE_INT: node = serd_node_new_integer(value->val.int_val); - result = (char*)node.buf; + result = lilv_strdup((char*)node.buf); + serd_node_free(&node); break; case LILV_VALUE_FLOAT: node = serd_node_new_decimal(value->val.float_val, 8); - result = (char*)node.buf; + result = lilv_strdup((char*)node.buf); + serd_node_free(&node); break; } |