]> sourceware.org Git - lvm2.git/commit
libdaemon: Fix some client leaks.
authorAlasdair G Kergon <agk@redhat.com>
Fri, 28 Nov 2014 21:31:51 +0000 (21:31 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 28 Nov 2014 21:31:51 +0000 (21:31 +0000)
commit6521c4b2156597a36a986def85449be734336c72
treed789c2b386341672ffcda20aca246189f6c56d39
parent530ebd8976bc08fdbaac7c132301fdde1e66ed8f
libdaemon: Fix some client leaks.

Free (and clear) h.protocol string on daemon_open() error paths
so it's OK for caller to skip calling daemon_close() if returned
h.socket_fd is -1.

Close h.socket_fd in daemon_close() to avoid possible leak.

https://bugzilla.redhat.com/1164234
WHATS_NEW
daemons/lvmetad/testclient.c
libdaemon/client/daemon-client.c
libdaemon/client/daemon-client.h
This page took 0.039867 seconds and 5 git commands to generate.