Fix use-after-return in tests.

A *function static* pointer to a non-static local variable becomes a dangling
pointer when the function is entered the second time.

Test: netd_integration_test64 --gtest_repeat=2

Change-Id: Icb9f38bcb774381f8387157a487785fb605e5839
1 file changed