]> granicus.if.org Git - graphviz/commitdiff
fix covertity #82845
authorJohn Ellson <ellson@research.att.com>
Tue, 6 Jan 2015 19:13:10 +0000 (14:13 -0500)
committerJohn Ellson <ellson@research.att.com>
Tue, 6 Jan 2015 19:13:10 +0000 (14:13 -0500)
plugin/rsvg/gvloadimage_rsvg.c

index 57bd6556180a6eb16afcce16d623835970c511e3..1de7f5ad51516047a6e510bfe1b7cd891c0d2f45 100644 (file)
@@ -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