diff options
author | David Robillard <d@drobilla.net> | 2014-11-17 06:44:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-17 06:44:49 +0000 |
commit | 4b1832ba51f1b6b722810a1fa83333ace84152da (patch) | |
tree | 314e0eca6982e1b16957368a1298b78c48ff5ea3 /src/instance.c | |
parent | d3f6af1009104b30d347fe7a8495f5d48ff4146c (diff) | |
download | suil-4b1832ba51f1b6b722810a1fa83333ace84152da.tar.gz suil-4b1832ba51f1b6b722810a1fa83333ace84152da.tar.bz2 suil-4b1832ba51f1b6b722810a1fa83333ace84152da.zip |
Fix a few minor/unlikely memory errors.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5485 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/instance.c')
-rw-r--r-- | src/instance.c | 3 |
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 |