I committed this; thanks.
-- David

On 26-Jun-2014 1:04 PM, Toralf Förster wrote:
This let the source code look more consistent and do eliminate btw 2 "Memory 
leak"- warnings from the checker Cppcheck (lines 366 and 380):


diff --git a/lib/crypt_prog.cpp b/lib/crypt_prog.cpp
index 3d45361..473308f 100644
--- a/lib/crypt_prog.cpp
+++ b/lib/crypt_prog.cpp
@@ -357,7 +357,7 @@ int main(int argc, char** argv) {
              }
          } else {
              // o2b
-            rsa_key_ = (RSA *)calloc(1, sizeof(RSA));
+            rsa_key_ = RSA_new();
              if (rsa_key_ == NULL) {
                  die("could not allocate memory for RSA structure.\n");
              }


Pls Cc: me - I'm not subscribed

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to