diff options
author | Bodo Möller <bodo@openssl.org> | 2000-03-03 22:24:43 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-03-03 22:24:43 +0000 |
commit | bb2276abf74843816dc2ec4f137ce7b98ae132fa (patch) | |
tree | 05f7eeee15575f9dcb1a08b1ce4051570ae495b5 /apps | |
parent | 41918458c0617911fd5eb44df9abb2d8dacde48f (diff) |
Avoid potential memory leak in code generated by 'openssl dhparam -C'.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dhparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dhparam.c b/apps/dhparam.c index b401789a1b..09316b2a1f 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -464,7 +464,7 @@ bad: printf("\tdh->g=BN_bin2bn(dh%d_g,sizeof(dh%d_g),NULL);\n", bits,bits); printf("\tif ((dh->p == NULL) || (dh->g == NULL))\n"); - printf("\t\treturn(NULL);\n"); + printf("\t\t{ DH_free(dh); return(NULL); }\n"); if (dh->length) printf("\tdh->length = %d\n", dh->length); printf("\treturn(dh);\n\t}\n"); |