Add support for memory leak checking in fips_algvs.
[openssl.git] / fips / des / fips_desmovs.c
index 29035f08c76669710d36c41f18a959cf745bc90a..79900aeae28e18e7f55c6f1beaf7c8749129639f 100644 (file)
@@ -263,6 +263,7 @@ static int do_tmct(char *amode,
        if(imode == TOFB)
            for(n=0 ; n < 8 ; ++n)
                text[n]=text0[n]^old_iv[n];
+       FIPS_cipher_ctx_cleanup(&ctx);
        }
     return 1;
     }
@@ -622,6 +623,7 @@ static int tproc_file(char *rqfile, char *rspfile)
        fclose(rfp);
     if (afp)
        fclose(afp);
+    FIPS_cipher_ctx_cleanup(&ctx);
     return err;
     }