From: Sebastian Harl Date: Wed, 14 May 2014 19:31:49 +0000 (+0200) Subject: connection_test: Free username strings stored in mock connection objects. X-Git-Tag: sysdb-0.1.0~20 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=fdfa0de80c7b120653190eef5fab3b56ce36c4ac connection_test: Free username strings stored in mock connection objects. --- diff --git a/t/unit/frontend/connection_test.c b/t/unit/frontend/connection_test.c index a069903..9e94614 100644 --- a/t/unit/frontend/connection_test.c +++ b/t/unit/frontend/connection_test.c @@ -61,6 +61,8 @@ mock_conn_destroy(sdb_conn_t *conn) sdb_strbuf_destroy(conn->errbuf); if (conn->fd >= 0) close(conn->fd); + if (conn->username) + free(conn->username); free(conn); } /* mock_conn_destroy */