about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2013-08-03 14:27:07 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2013-08-03 14:27:07 +0300
commit0346fda0b3ddc484c3a28d88a5c42b890feb3079 (patch)
tree4ffaa3d1ad7a20fe1c44e3509b060619e7d8ff2d /src/config
parent6f498d1f69098742acc33d429c5e8dcee4edd86d (diff)
downloadprofani-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.c14
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);
     }
 }