summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--src/instance.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 9c82575..4e8fca7 100644
--- a/NEWS
+++ b/NEWS
@@ -3,8 +3,9 @@ suil (0.8.3) unstable;
* Configure based on compiler target OS for cross-compilation
* Add Cocoa in Gtk wrapper (patch from Robin Gareus)
* Fix compilation with -Wl,--no-undefined
+ * Fix a few minor/unlikely memory errors
- -- David Robillard <d@drobilla.net> Tue, 28 Oct 2014 21:21:17 -0400
+ -- David Robillard <d@drobilla.net> Mon, 17 Nov 2014 01:44:25 -0500
suil (0.8.2) stable;
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