diff options
author | David Carlier <devnexen@gmail.com> | 2016-05-04 17:46:15 +0100 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-02-17 17:06:34 -0800 |
commit | 42ae3d66283a9efa0c510d5d438f821549656fe6 (patch) | |
tree | c2be70ecd84e2ee9a200acacdc53d16a58bc9e4a | |
parent | 7a56946260616f7f5ff43ecbaac1f2ada9b0afcd (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |