]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Avoid memory leak on unexpected family ID
authorNick Mathewson <nickm@torproject.org>
Thu, 20 Mar 2025 15:28:28 +0000 (11:28 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 20 Mar 2025 15:28:28 +0000 (11:28 -0400)
Fixes bug #41034; bug not in any released tor.

src/feature/relay/routerkeys.c

index 5ef0305f1df7f7393ef6db3d6525e393eaab0605..b7a5ddabceff1b454c5b61ad34acb0f34d99091f 100644 (file)
@@ -840,6 +840,7 @@ load_family_id_keys_impl(const or_options_t *options,
                fn, ed25519_fmt(&kp_tmp->pubkey));
     }
 
+    ed25519_keypair_free(kp_tmp);
     tor_free(tag_tmp);
   } SMARTLIST_FOREACH_END(fn);