summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs-fops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
index ea61c8b7a43..ca2d3adc14f 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -1440,8 +1440,7 @@ out:
if (ret) {
if (fd)
fd_unref (fd);
- if (glfd)
- GF_REF_PUT (glfd);
+ GF_REF_PUT (glfd);
GF_FREE (gio);
if (frame)
STACK_DESTROY (frame->root);