tests: Fix a few memory leaks.
tests: Fix a few memory leaks.

Fixed a memory leak in end_network_tests() and RUN_NETWORK_TEST():
both used test_env_setup(), but did not free it up in the else case.

algernon/libmongo-client,algernon/libmongo-client,algernon/libmongo-client