X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdictionary.c;h=5f86bbf518fc84822343ab60f45e7483653977dd;hb=97f9b8ad137e333af9b3c767556d28dfda93a461;hp=dc7e8732296ebc4703faa91cc429719ecff846b2;hpb=458ebdc8a14f6f3cb28dfb991b7cf1d2e422a852;p=pspp diff --git a/src/data/dictionary.c b/src/data/dictionary.c index dc7e873229..5f86bbf518 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -297,7 +297,7 @@ dict_destroy (struct dictionary *d) dict_clear (d); hmap_destroy (&d->name_map); attrset_destroy (&d->attributes); - free (d->mrsets); + dict_clear_mrsets (d); free (d->encoding); free (d); } @@ -330,7 +330,7 @@ void dict_get_vars (const struct dictionary *d, const struct variable ***vars, size_t *cnt, enum dict_class exclude) { - dict_get_vars_mutable (d, (struct variable ***) vars, cnt, exclude); + dict_get_vars_mutable (d, CONST_CAST (struct variable ***, vars), cnt, exclude); } /* Sets *VARS to an array of pointers to variables in D and *CNT