Skip to content

Commit

Permalink
Clear session pool on test end.
Browse files Browse the repository at this point in the history
  • Loading branch information
alamaison committed Feb 7, 2016
1 parent b631551 commit 84a5346
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fixtures/openssh_fixture.cpp
Expand Up @@ -15,6 +15,8 @@

#include "openssh_fixture.hpp"

#include "swish/connection/session_pool.hpp"

#include <boost/assign/list_of.hpp>
#include <boost/date_time/posix_time/posix_time_duration.hpp>
#include <boost/foreach.hpp>
Expand Down Expand Up @@ -191,6 +193,7 @@ struct global_fixture
// We call this here as a bit of a hack to stop memory-leak
// detection incorrectly detecting OpenSSL global data as a
// leak
swish::connection::session_pool().destroy();
::RAND_cleanup();
::ENGINE_cleanup();
::CONF_modules_unload(1);
Expand Down

0 comments on commit 84a5346

Please sign in to comment.