Free a temporary buffer used by dsaparam application
authorMatt Caswell <matt@openssl.org>
Wed, 27 Apr 2016 13:54:58 +0000 (14:54 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 17:00:53 +0000 (18:00 +0100)
The dsaparam application allocates a temporary buffer but then doesn't
free it.

Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/dsaparam.c

index c12bd7046a87ba2f4afe9524920fef1d33cc4d93..cd2ca4c3f7c9c4518f99970f41b7c1b2f6094481 100644 (file)
@@ -244,6 +244,7 @@ int dsaparam_main(int argc, char **argv)
                             "        return NULL;\n"
                             "    }\n"
                             "    return(dsa);\n}\n");
                             "        return NULL;\n"
                             "    }\n"
                             "    return(dsa);\n}\n");
+        OPENSSL_free(data);
     }
 
     if (!noout) {
     }
 
     if (!noout) {