Explorar o código

Fix memory leak in policies test

cypherpunks %!s(int64=9) %!d(string=hai) anos
pai
achega
8ce70fcbf3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/test/test_policy.c

+ 1 - 1
src/test/test_policy.c

@@ -1033,7 +1033,7 @@ test_policies_getinfo_helper_policies(void *arg)
   tor_free(answer);
   UNMOCK(get_options);
   UNMOCK(router_get_my_routerinfo);
-  smartlist_free(mock_my_routerinfo.exit_policy);
+  addr_policy_list_free(mock_my_routerinfo.exit_policy);
 }
 
 #undef DEFAULT_POLICY_STRING