Index: src/log.c =================================================================== --- src/log.c +++ src/log.c 2006-08-20 02:25:55.927373903 +0200 @@ -148,7 +148,10 @@ g_free(log); } g_list_free(net?net->logs:other_logs); - net?net->logs:other_logs = NULL; + if (net) + net->logs = NULL; + else + other_logs = NULL; } void log_file_destroy(log_file_t* lf) {