diff options
author | David Robillard <d@drobilla.net> | 2017-12-29 10:19:37 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-29 10:44:36 -0500 |
commit | 3c427ddbbb38eb271dcd1b8d23cbe07c8a8be025 (patch) | |
tree | d338d5e01bc17a6d36f229846a8663eeb01fe3bb /utils/lv2apply.c | |
parent | 8c13a50d14f01935919bfb774b02d0cbfdd42fd7 (diff) | |
download | lilv-3c427ddbbb38eb271dcd1b8d23cbe07c8a8be025.tar.gz lilv-3c427ddbbb38eb271dcd1b8d23cbe07c8a8be025.tar.bz2 lilv-3c427ddbbb38eb271dcd1b8d23cbe07c8a8be025.zip |
Fix potential memory leaks
Diffstat (limited to 'utils/lv2apply.c')
-rw-r--r-- | utils/lv2apply.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/lv2apply.c b/utils/lv2apply.c index 7fc07b2..7f45733 100644 --- a/utils/lv2apply.c +++ b/utils/lv2apply.c @@ -230,9 +230,11 @@ main(int argc, char** argv) const char* plugin_uri = NULL; for (int i = 1; i < argc; ++i) { if (!strcmp(argv[i], "--version")) { + free(self.params); print_version(); return 0; } else if (!strcmp(argv[i], "--help")) { + free(self.params); return print_usage(0); } else if (!strcmp(argv[i], "-i")) { self.in_path = argv[++i]; |