summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 d690047cb6..e54f62bf51 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;
}