You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2004/11/12 12:15:14 UTC

cvs commit: xml-security/c/src/enc/OpenSSL OpenSSLCryptoKeyDSA.cpp

blautenb    2004/11/12 03:15:14

  Modified:    c/src/enc/OpenSSL OpenSSLCryptoKeyDSA.cpp
  Log:
  Minor memory leak
  
  Revision  Changes    Path
  1.8       +4 -1      xml-security/c/src/enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp
  
  Index: OpenSSLCryptoKeyDSA.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- OpenSSLCryptoKeyDSA.cpp	8 Feb 2004 10:22:50 -0000	1.7
  +++ OpenSSLCryptoKeyDSA.cpp	12 Nov 2004 11:15:14 -0000	1.8
  @@ -198,6 +198,9 @@
   	dsa_sig->r = BN_dup(R);
   	dsa_sig->s = BN_dup(S);
   
  +	BN_free(R);
  +	BN_free(S);
  +
   	unsigned char sigValTranslatedBuf[256];
   	unsigned char * sigValTranslated = sigValTranslatedBuf;
   	int sigValTranslatedLen;