valgrind: fix memory leak in http-conn.c
commit7909b7f9d8b9336b47890564d003010b1d63b61b
authorStefan Becker <chemobejk@gmail.com>
Tue, 13 Dec 2011 21:17:49 +0000 (13 23:17 +0200)
committerStefan Becker <chemobejk@gmail.com>
Tue, 13 Dec 2011 21:17:49 +0000 (13 23:17 +0200)
tree6685a1479eb2ade4d21454aa285c413de67cf1b7
parent48f2109c1a417e862f67bec916dc73a2ccc685c7
valgrind: fix memory leak in http-conn.c

When http_conn_free() was called while the HTTP connection was still
pending then sipe_backend_transport_disconnect() wasn't called. Moved
that call from http_conn_close() to http_conn_free() to fix this leak.

Also noticed that there was an unused function http_conn_auth_free().
src/core/http-conn.c
src/core/http-conn.h