X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdictionary.c;h=0ca9f9e4ff50023543e1914ae83576ebaa27c6a2;hb=f994fab43f6aeb00cfb40d24c4c4c6ed518a05b9;hp=aa0fcd5654d82181c23895793a7c88459e1e2dae;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp-builds.git diff --git a/src/data/dictionary.c b/src/data/dictionary.c index aa0fcd56..0ca9f9e4 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -297,7 +297,8 @@ 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); } } @@ -1261,7 +1262,7 @@ dict_set_documents (struct dictionary *d, const char *documents) final line with spaces. */ remainder = ds_length (&d->documents) % DOC_LINE_LENGTH; if (remainder != 0) - ds_put_char_multiple (&d->documents, ' ', DOC_LINE_LENGTH - remainder); + ds_put_byte_multiple (&d->documents, ' ', DOC_LINE_LENGTH - remainder); } /* Drops the documents from dictionary D. */