From 3611d0f9dff54f9fcb408391aa358e90a8dee46c Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 14 Apr 2015 20:24:02 +0100 Subject: [PATCH] Fix small memory leak in openslide loader vips_image_set_string takes a copy of the string --- libvips/foreign/openslide2vips.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libvips/foreign/openslide2vips.c b/libvips/foreign/openslide2vips.c index f6176be1..c1b00421 100644 --- a/libvips/foreign/openslide2vips.c +++ b/libvips/foreign/openslide2vips.c @@ -380,6 +380,7 @@ readslide_new( const char *filename, VipsImage *out, associated = g_strjoinv( ", ", (char **) openslide_get_associated_image_names( rslide->osr ) ); vips_image_set_string( out, "slide-associated-images", associated ); + VIPS_FREE( associated ); return( rslide ); }