From 0d89131f664d9c9731d3b750c9358ece9ffbe70d Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 26 Aug 2014 15:25:36 +0100 Subject: [PATCH] Prevent small memory leak with non-empty argv0 #21 --- src/sharp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sharp.cc b/src/sharp.cc index 2c78854e..ed0974aa 100755 --- a/src/sharp.cc +++ b/src/sharp.cc @@ -765,7 +765,7 @@ static void at_exit(void* arg) { extern "C" void init(Handle target) { NanScope(); - vips_init(""); + vips_init("sharp"); AtExit(at_exit); // Set libvips operation cache limits vips_cache_set_max_mem(100 * 1048576); // 100 MB