summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/instance.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/instance.c b/src/instance.c
index 06d6287..e5cf54d 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -114,6 +114,7 @@ open_wrapper(SuilHost* host,
void* lib = dlopen(path, RTLD_NOW);
if (!lib) {
SUIL_ERRORF("Unable to open wrap module %s (%s)\n", path, dlerror());
+ free(path);
return NULL;
}
@@ -203,7 +204,7 @@ suil_instance_new(SuilHost* host,
instance->descriptor = descriptor;
// Make UI features array
- instance->features = (LV2_Feature**)malloc(sizeof(LV2_Feature**));
+ instance->features = (LV2_Feature**)malloc(sizeof(LV2_Feature*));
instance->features[0] = NULL;
// Copy user provided features