From 214b1a3f43efa1b0d3acaa350febcb281beec93b Mon Sep 17 00:00:00 2001 From: John McNamara Date: Wed, 25 May 2016 01:23:51 +0100 Subject: [PATCH] Fix memory leak. --- src/worksheet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worksheet.c b/src/worksheet.c index 34e7e76e..82509844 100644 --- a/src/worksheet.c +++ b/src/worksheet.c @@ -4835,7 +4835,7 @@ worksheet_insert_image_opt(lxw_worksheet *self, /* Copy other options or set defaults. */ options->filename = lxw_strdup(filename); - options->short_name = lxw_strdup(short_name); + options->short_name = short_name; options->stream = image_stream; options->row = row_num; options->col = col_num;