Explorar o código

Fix a memory leak; bug 17398.

Nick Mathewson %!s(int64=8) %!d(string=hai) anos
pai
achega
542cc8a5ff
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 3 0
      changes/bug17398
  2. 1 0
      src/common/crypto_ed25519.c

+ 3 - 0
changes/bug17398

@@ -0,0 +1,3 @@
+  o Minor bugfixes (memory leaks):
+    - Fix a memory leak in ed25519 batch signature checking.
+      Fixes bug 17398; bugfix on 0.2.6.1-alpha.

+ 1 - 0
src/common/crypto_ed25519.c

@@ -260,6 +260,7 @@ ed25519_checksig_batch(int *okay_out,
     tor_free(ms);
     tor_free(lens);
     tor_free(pks);
+    tor_free(sigs);
     if (! okay_out)
       tor_free(oks);
   }