summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/md5.c')
-rw-r--r--libglusterfs/src/md5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/md5.c b/libglusterfs/src/md5.c
index 6fd6ecbf780..5f0d0d157bf 100644
--- a/libglusterfs/src/md5.c
+++ b/libglusterfs/src/md5.c
@@ -294,6 +294,8 @@ int main(int argc, char *argv[])
while ((i = fread(buf, 1, sizeof buf, f)) > 0)
md5_update(&ctx, buf, i);
+ fclose(f);
+
md5_result(&ctx, md5sum);
for (j = 0; j < MD5_DIGEST_LEN; j++)