diff options
author | Bodo Möller <bodo@openssl.org> | 1999-10-25 19:36:01 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-10-25 19:36:01 +0000 |
commit | 798757762a2b1a952147b602fd37fd6fe317e26f (patch) | |
tree | 4097e322deb615cc60cbee8fb03433d1d6d0c260 /crypto/dh | |
parent | a5fcd09e7552dedf87d5a1ff5d07a0397bc057cb (diff) | |
download | openssl-798757762a2b1a952147b602fd37fd6fe317e26f.tar.gz |
Improve support for running everything as a monolithic application.
Submitted by: Lennart Bång, Bodo Möller
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dhtest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/dh/dhtest.c b/crypto/dh/dhtest.c index 770331971f..687ce71611 100644 --- a/crypto/dh/dhtest.c +++ b/crypto/dh/dhtest.c @@ -87,14 +87,13 @@ static void MS_CALLBACK cb(int p, int n, void *arg); #include "bss_file.c" #endif -BIO *out=NULL; - int main(int argc, char *argv[]) { DH *a,*b; char buf[12]; unsigned char *abuf=NULL,*bbuf=NULL; int i,alen,blen,aout,bout,ret=1; + BIO *out; #ifdef WIN32 CRYPTO_malloc_init(); @@ -167,6 +166,9 @@ int main(int argc, char *argv[]) err: if (abuf != NULL) Free(abuf); if (bbuf != NULL) Free(bbuf); + if(b != NULL) DH_free(b); + if(a != NULL) DH_free(a); + BIO_free(out); exit(ret); return(ret); } |