From 58d2c13c7996d6d192cc792eca372538673f808e Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sun, 12 Aug 2018 18:33:11 -0700 Subject: libglusterfs: Fix a resource leak in graph.c Fixes CID 1382367 Change-Id: I02678fc71716ab0046ea2ef437c6594a8a34a4fc updates: bz#789278 Signed-off-by: Vijay Bellur --- libglusterfs/src/graph.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src') 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; } -- cgit