From fdfa0de80c7b120653190eef5fab3b56ce36c4ac Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 14 May 2014 21:31:49 +0200 Subject: [PATCH] connection_test: Free username strings stored in mock connection objects. --- t/unit/frontend/connection_test.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.30.2