Code

connection_test: Free username strings stored in mock connection objects.
authorSebastian Harl <sh@tokkee.org>
Wed, 14 May 2014 19:31:49 +0000 (21:31 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 14 May 2014 19:31:49 +0000 (21:31 +0200)
t/unit/frontend/connection_test.c

index a069903d1f19b3ef2d82134f39a1060c3e431d7f..9e9461453cff6204611bcd74192e94569d9ec3f0 100644 (file)
@@ -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 */