chiark / gitweb /
Use a proper union in struct config_item.
[sgt-puzzles.git] / misc.c
diff --git a/misc.c b/misc.c
index b44f1b14f854aa8e8a24cf190f95cc6fd39a3102..d555ad261a9be39c2e93477a5e854edb421e051c 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -17,7 +17,7 @@ void free_cfg(config_item *cfg)
 
     for (i = cfg; i->type != C_END; i++)
        if (i->type == C_STRING)
-           sfree(i->sval);
+           sfree(i->u.string.sval);
     sfree(cfg);
 }