Browse Source

si should only be dealloced on shutdown

master
Con Kolivas 10 years ago
parent
commit
d15d19bf3a
  1. 2
      src/generator.c

2
src/generator.c

@ -192,7 +192,6 @@ static void kill_server(server_instance_t *si)
dealloc(cs->port);
dealloc(cs->auth);
dealloc(si->data);
dealloc(si);
}
static int gen_loop(proc_instance_t *pi)
@ -1315,6 +1314,7 @@ static int server_mode(ckpool_t *ckp, proc_instance_t *pi)
for (i = 0; i < ckp->btcds; i++) {
si = ckp->servers[i];
kill_server(si);
dealloc(si);
}
dealloc(ckp->servers);
return ret;

Loading…
Cancel
Save