From cf6aae796e3a5d021cb2473a798fb68279655723 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Tue, 6 Jan 2015 14:13:10 -0500 Subject: [PATCH] fix covertity #82845 --- plugin/rsvg/gvloadimage_rsvg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/rsvg/gvloadimage_rsvg.c b/plugin/rsvg/gvloadimage_rsvg.c index 57bd65561..1de7f5ad5 100644 --- a/plugin/rsvg/gvloadimage_rsvg.c +++ b/plugin/rsvg/gvloadimage_rsvg.c @@ -114,6 +114,7 @@ static RsvgHandle* gvloadimage_rsvg_load(GVJ_t * job, usershape_t *us) rewind(us->f); if ((result = fread(fileBuf, 1, fileSize, us->f)) < fileSize) { + free(fileBuf); #if HAVE_G_OBJECT_UNREF g_object_unref(rsvgh); #else -- 2.40.0