summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src/glusterfsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
-rw-r--r--glusterfsd/src/glusterfsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 6e61a66c6d1..dfef7922245 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -2206,6 +2206,7 @@ glusterfs_pidfile_cleanup(glusterfs_ctx_t *ctx)
gf_msg_trace("glusterfsd", 0, "pidfile %s cleanup", cmd_args->pid_file);
if (ctx->cmd_args.pid_file) {
+ GF_FREE(ctx->cmd_args.pid_file);
ctx->cmd_args.pid_file = NULL;
}