summaryrefslogtreecommitdiff
path: root/src/elogin/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elogin/config.c')
-rw-r--r--src/elogin/config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/elogin/config.c b/src/elogin/config.c
index 18f8275..8497a7e 100644
--- a/src/elogin/config.c
+++ b/src/elogin/config.c
@@ -20,11 +20,13 @@ char *update_server = NULL;
void config_update_server(const char *key __attribute__ ((unused)),
const char *val)
{
+ if (update_server != NULL)
+ aFree(update_server);
update_server = aStrdup(val);
}
void config_final(void)
{
- if (update_server)
+ if (update_server != NULL)
aFree(update_server);
}