Finally found bad free... must strdup defval, since get_property returns a pointer that must be free()able. Also put in consts so we can past it const vars
Convert to using const chars instead of buffers