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