mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
fix memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36858 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7d5f098d75
commit
c4dbae9cca
2 changed files with 9 additions and 5 deletions
|
@ -1107,7 +1107,7 @@ static NSMutableDictionary *credentialsCache = nil;
|
|||
}
|
||||
}
|
||||
|
||||
/* Get the key for our sertificat .. if one is specified.
|
||||
/* Get the key for our certificate .. if one is specified.
|
||||
*/
|
||||
if (nil != ck)
|
||||
{
|
||||
|
@ -1173,14 +1173,14 @@ static NSMutableDictionary *credentialsCache = nil;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
if (nil != key)
|
||||
if (nil != name)
|
||||
{
|
||||
gnutls_certificate_free_credentials(certcred);
|
||||
DESTROY(key);
|
||||
DESTROY(list);
|
||||
DESTROY(dhParams);
|
||||
DESTROY(name);
|
||||
}
|
||||
DESTROY(list);
|
||||
DESTROY(dhParams);
|
||||
DESTROY(name);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue