]> git.tuebingen.mpg.de Git - paraslash.git/commit
para_client: Fix a memory leak.
authorAndre Noll <maan@systemlinux.org>
Sun, 22 Jan 2012 21:45:21 +0000 (22:45 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 22 Jan 2012 21:45:21 +0000 (22:45 +0100)
commit2fa3262b24c1e64191d8acfc3c4a96f2ef13c433
tree31a96cf7678ba149349fab08cc6745594396efab
parentf2edf225c74a6cc77f7eb1a2984c1d39030a12d5
para_client: Fix a memory leak.

The main function of para_client first calls client_parse_config()
to decide whether to start an interactive session, run in completion
mode or execute the given command. In the third case case we call
client_open() which calls client_parse_config() again, thereby
leaking the client_task structure which was returned by the first
call to client_parse_config().

Fix this leak by calling client_connect() instead of client_open().
client.c