summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2018-08-12 18:33:11 -0700
committerAmar Tumballi <amarts@redhat.com>2018-08-13 15:13:19 +0000
commit58d2c13c7996d6d192cc792eca372538673f808e (patch)
treecdec4671a3dbbfe6d8127c3405b3a038d6be96fe
parentd3b0af8e64df14ff310044f35387c9de4d36df0a (diff)
libglusterfs: Fix a resource leak in graph.c
Fixes CID 1382367 Change-Id: I02678fc71716ab0046ea2ef437c6594a8a34a4fc updates: bz#789278 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--libglusterfs/src/graph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c
index d690047cb68..e54f62bf518 100644
--- a/libglusterfs/src/graph.c
+++ b/libglusterfs/src/graph.c
@@ -1200,6 +1200,7 @@ glusterfs_graph_attach (glusterfs_graph_t *orig_graph, char *path,
"read failed on path %s. File size=%"GF_PRI_SIZET
"read size=%d", path, file_len, ret);
GF_FREE (volfile_content);
+ fclose (fp);
return -EIO;
}