Browse Source

Fix memory leak

zrythm_meson
David Robillard 6 years ago
parent
commit
ce95cd35b2
  1. 3
      src/sratom.c

3
src/sratom.c

@ -651,10 +651,11 @@ read_node(Sratom* sratom, @@ -651,10 +651,11 @@ read_node(Sratom* sratom,
SerdURI uri;
serd_uri_parse((const uint8_t*)str, &uri);
SerdNode rel = serd_node_new_relative_uri(&uri, &sratom->base, NULL, NULL);
SerdNode rel = serd_node_new_relative_uri(&uri, &sratom->base, NULL, NULL);
uint8_t* path = serd_file_uri_parse(rel.buf, NULL);
lv2_atom_forge_path(forge, (const char*)path, strlen((const char*)path));
free(path);
serd_node_free(&rel);
} else {
lv2_atom_forge_urid(forge, map->map(map->handle, str));
}

Loading…
Cancel
Save