mail kit: fix memory leak.
CID 896.
This commit is contained in:
parent
728d429e7d
commit
be6c4d6a5d
@ -6,6 +6,7 @@
|
||||
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <Directory.h>
|
||||
#include <E-mail.h>
|
||||
@ -86,6 +87,7 @@ get_pop_account(mail_pop_account* account, int32 index)
|
||||
password = passwd;
|
||||
strcpy(account->pop_password, password);
|
||||
|
||||
free((char *)passwd);
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user