diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2013-08-03 14:27:07 +0300 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2013-08-03 14:27:07 +0300 |
commit | 0346fda0b3ddc484c3a28d88a5c42b890feb3079 (patch) | |
tree | 4ffaa3d1ad7a20fe1c44e3509b060619e7d8ff2d /src/config | |
parent | 6f498d1f69098742acc33d429c5e8dcee4edd86d (diff) | |
download | profani-tty-0346fda0b3ddc484c3a28d88a5c42b890feb3079.tar.gz |
most FREE_SET_NULL replaced with free
FREE_SET_NULL makes extra assignment of NULL for pointers in stack or dynamic memory that is going to be freed. FREE_SET_NULL is useful for pointers that can be used in future.
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/accounts.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/config/accounts.c b/src/config/accounts.c index 876ff870..c82f6b2d 100644 --- a/src/config/accounts.c +++ b/src/config/accounts.c @@ -236,13 +236,13 @@ void accounts_free_account(ProfAccount *account) { if (account != NULL) { - FREE_SET_NULL(account->name); - FREE_SET_NULL(account->jid); - FREE_SET_NULL(account->resource); - FREE_SET_NULL(account->server); - FREE_SET_NULL(account->last_presence); - FREE_SET_NULL(account->login_presence); - FREE_SET_NULL(account); + free(account->name); + free(account->jid); + free(account->resource); + free(account->server); + free(account->last_presence); + free(account->login_presence); + free(account); } } |