fix memory leak

argv_free(argv) should be called before calling ktap_exit