mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-05 10:39:27 +02:00
check for NULL pointer
This commit is contained in:
parent
f5d1b5d17b
commit
cab764bb63
1 changed files with 4 additions and 2 deletions
|
@ -1183,9 +1183,11 @@ encrypt_se_ip_destroyer(pgp_writer_t *writer)
|
|||
|
||||
se_ip = pgp_writer_get_arg(writer);
|
||||
|
||||
se_ip->crypt->decrypt_finish(se_ip->crypt); // EDIT BY MR - fix memory leak
|
||||
if( se_ip->crypt ) {
|
||||
se_ip->crypt->decrypt_finish(se_ip->crypt); // EDIT BY MR - fix memory leak
|
||||
free(se_ip->crypt);
|
||||
}
|
||||
|
||||
free(se_ip->crypt);
|
||||
free(se_ip);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue