projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
apps
/
silcd
/
silcd.c
diff --git
a/apps/silcd/silcd.c
b/apps/silcd/silcd.c
index 2ad30724bd57726764feafc8d12f5c32130f82c7..82d29d7a44767154f713a9aa028d594e7a2bee91 100644
(file)
--- a/
apps/silcd/silcd.c
+++ b/
apps/silcd/silcd.c
@@
-381,9
+381,6
@@
int main(int argc, char **argv)
if (silcd->config == NULL)
goto fail;
silcd->config_file = silcd_config_file;
if (silcd->config == NULL)
goto fail;
silcd->config_file = silcd_config_file;
- /* Since silc_server_config_alloc returns an unreferenced config object
- we must immediately increment it. */
- silc_server_config_ref(&silcd->config_ref, silcd->config, silcd->config);
/* Check for another silcd running */
silc_server_checkpid(silcd);
/* Check for another silcd running */
silc_server_checkpid(silcd);
@@
-428,6
+425,7
@@
int main(int argc, char **argv)
/* Stop the server and free it. */
silc_server_stop(silcd);
silc_server_free(silcd);
/* Stop the server and free it. */
silc_server_stop(silcd);
silc_server_free(silcd);
+ silc_server_config_destroy(silcd->config);
/* Flush the logging system */
silc_log_flush_all();
/* Flush the logging system */
silc_log_flush_all();