Projekt

Allgemein

Profil

Bug #35 » aqbanking-memleaks.txt

thbe, 07.08.2019 09:34

 
----------------------- src/libs/aqbanking/banking_cfg.c -----------------------
index 61545ee8..fa808839 100644
@@ -661,6 +661,7 @@ int AB_Banking_ReadConfigGroups(const AB_BANKING *ab,
GWEN_StringList_free(sl);
return GWEN_ERROR_PARTIAL;
}
+ GWEN_StringList_free(sl);
return 0;
}
else {

--------------------- src/libs/aqbanking/banking_online.c ---------------------
index f46811b5..608500df 100644
@@ -203,6 +203,7 @@ int AB_Banking_EndUseProvider(AB_BANKING *ab, AB_PROVIDER *pro)
return rv;
}
GWEN_DB_Group_free(db);
+ AB_Provider_free(pro);

return 0;
}

--------------- src/libs/plugins/backends/aqhbci/banking/user.c ---------------
index 513cf42c..b99c86b6 100644
@@ -935,6 +935,8 @@ void AH_User_SetBankPubCryptKey(AB_USER *u, GWEN_CRYPT_KEY *bankPubCryptKey)

if (ue->bankPubCryptKey!=bankPubCryptKey) {
//GWEN_Crypt_KeyRsa_free(ue->bankPubKey);
+ if(ue->bankPubCryptKey)
+ GWEN_Crypt_Key_free(ue->bankPubCryptKey);
ue->bankPubCryptKey=GWEN_Crypt_KeyRsa_dup(bankPubCryptKey);
}
}
@@ -961,6 +963,8 @@ void AH_User_SetBankPubSignKey(AB_USER *u, GWEN_CRYPT_KEY *bankPubSignKey)

if (ue->bankPubSignKey!=bankPubSignKey) {
//GWEN_Crypt_KeyRsa_free(ue->bankPubKey);
+ if(ue->bankPubSignKey)
+ GWEN_Crypt_Key_free(ue->bankPubSignKey);
ue->bankPubSignKey=GWEN_Crypt_KeyRsa_dup(bankPubSignKey);
}
}

------------ src/libs/plugins/backends/aqhbci/joblayer/job_commit.c ------------
index c4a1a509..2c143b69 100644
@@ -546,6 +546,8 @@ int AH_Job__CommitSystemData(AH_JOB *j, int doLock)
I18N("Received unknown server key: type=%s, num=%d, version=%d, hash=%s"),
keytype, keynum, keyver, hashString);
}
+ if(bpk)
+ GWEN_Crypt_Key_free(bpk);
}
}

(3-3/7)