summaryrefslogtreecommitdiffstats
path: root/src/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.c b/src/lib.c
index ddf3d8e..77d3d22 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -42,7 +42,7 @@ lilv_lib_open(LilvWorld* world,
void* lib = dlopen(lib_path, RTLD_NOW);
if (!lib) {
LILV_ERRORF("Failed to open library %s (%s)\n", lib_path, dlerror());
- free(lib_path);
+ lilv_free(lib_path);
return NULL;
}
@@ -57,17 +57,17 @@ lilv_lib_open(LilvWorld* world,
desc = ldf(bundle_path, features);
if (!desc) {
LILV_ERRORF("Call to `lv2_lib_descriptor' in %s failed\n", lib_path);
- free(lib_path);
+ lilv_free(lib_path);
return NULL;
}
} else if (!df) {
LILV_ERRORF("No `lv2_descriptor' or `lv2_lib_descriptor' in %s\n",
lib_path);
dlclose(lib);
- free(lib_path);
+ lilv_free(lib_path);
return NULL;
}
- free(lib_path);
+ lilv_free(lib_path);
LilvLib* llib = (LilvLib*)malloc(sizeof(LilvLib));
llib->world = world;