summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/spec.y
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/spec.y')
-rw-r--r--libglusterfs/src/spec.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/spec.y b/libglusterfs/src/spec.y
index e5d68b42106..ec9101a2c21 100644
--- a/libglusterfs/src/spec.y
+++ b/libglusterfs/src/spec.y
@@ -518,6 +518,7 @@ parse_backtick (FILE *srcfp, FILE *dstfp)
result = realloc (result,
2 * cmd_buf_size);
if (result == NULL) {
+ free (cmd);
return -1;
}
}