Commit 2b2f723e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Now we do.

parent 57fed777
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
* XXX: Before we start the client or maybe after it stops, we should give the * XXX: Before we start the client or maybe after it stops, we should give the
* XXX: stevedores a chance to examine their storage for consistency. * XXX: stevedores a chance to examine their storage for consistency.
* *
* XXX: Do we ever free the LRU-lists ?
*/ */
#include "config.h" #include "config.h"
...@@ -101,7 +100,8 @@ smp_save_segs(struct smp_sc *sc) ...@@ -101,7 +100,8 @@ smp_save_segs(struct smp_sc *sc)
if (sg == sc->cur_seg) if (sg == sc->cur_seg)
continue; continue;
VTAILQ_REMOVE(&sc->segments, sg, list); VTAILQ_REMOVE(&sc->segments, sg, list);
free(sg); LRU_Free(sg->lru);
FREE_OBJ(sg);
} }
smp_save_seg(sc, &sc->seg1); smp_save_seg(sc, &sc->seg1);
smp_save_seg(sc, &sc->seg2); smp_save_seg(sc, &sc->seg2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment