Browse Source

Dead instances are a singly linked list only

master
Con Kolivas 10 years ago
parent
commit
8f10347775
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -1280,7 +1280,7 @@ static void drop_client(sdata_t *sdata, int64_t id)
} }
/* Discard any dead instances that no longer hold any reference counts, /* Discard any dead instances that no longer hold any reference counts,
* freeing up their memory safely */ * freeing up their memory safely */
DL_FOREACH_SAFE(sdata->dead_instances, client, tmp) { LL_FOREACH_SAFE(sdata->dead_instances, client, tmp) {
if (!client->ref) { if (!client->ref) {
LOGINFO("Stratifier discarding instance %ld", client->id); LOGINFO("Stratifier discarding instance %ld", client->id);
LL_DELETE(sdata->dead_instances, client); LL_DELETE(sdata->dead_instances, client);

Loading…
Cancel
Save