summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2016-05-04 17:46:15 +0100
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-02-17 17:06:34 -0800
commit42ae3d66283a9efa0c510d5d438f821549656fe6 (patch)
treec2be70ecd84e2ee9a200acacdc53d16a58bc9e4a
parent7a56946260616f7f5ff43ecbaac1f2ada9b0afcd (diff)
fix memory leak in StorePid()
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xdm/dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xdm/dm.c b/xdm/dm.c
index 6260324..1f1c4fb 100644
--- a/xdm/dm.c
+++ b/xdm/dm.c
@@ -970,6 +970,7 @@ StorePid (void)
LogError ("process-id directory %s cannot be created\n",
pidDir);
}
+ free(pidDir);
}
pidFd = open (pidFile, O_WRONLY|O_CREAT|O_EXCL, 0666);