Don't forget to free G, P, Q, ctr_drbg, and entropy

I might be wrong, but lcc's optimizer is curious about this,
and I am too: shouldn't we free allocated stuff correctly
before exiting `dh_genprime` in this certain point of code?

Signed-off-by: makise-homura <[email protected]>
This commit is contained in:
makise-homura
2020-08-23 00:41:59 +03:00
parent 50f6a192b5
commit 03b4ef6a05
+1 -1
View File
@@ -118,7 +118,7 @@ int main( int argc, char **argv )
{
usage:
mbedtls_printf( USAGE );
mbedtls_exit( exit_code );
goto exit;
}
for( i = 1; i < argc; i++ )