void-packages/srcpkgs/lv2/patches/fix-memory-leak.patch

26 lines
586 B
Diff

From f8fdd7a48d12465d2ef8153d25337593c88687e3 Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Sun, 12 Feb 2017 18:20:31 +0100
Subject: Fix memory leak
---
plugins/eg-sampler.lv2/sampler.c | 2 ++
1 file changed, 2 insertions(+)
diff --git plugins/eg-sampler.lv2/sampler.c plugins/eg-sampler.lv2/sampler.c
index ca92a9c..95cb45e 100644
--- plugins/eg-sampler.lv2/sampler.c
+++ plugins/eg-sampler.lv2/sampler.c
@@ -564,6 +564,8 @@ restore(LV2_Handle instance,
free(buf);
}
+ free(path);
+
return LV2_STATE_SUCCESS;
}
--
cgit v1.2.1