Follow-up Comment #6, patch #2218 (project freeciv): And this is correct since you don't use spechash_hash_insert(). spechash_hash_replace() always set the data and the key in the hash table. As spechash_hash_insert() doesn't, on failure, we used to forget to free the key and the data. In this case, SPECHASH_<DATA|KEY>_COPY is useful (e.g. for strings).
_______________________________________________________ Reply to this item at: <http://gna.org/patch/?2218> _______________________________________________ Message posté via/par Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev