[PATCH] selftests: net: avoid memory leak