Fixes #1259 If `ur_string_map_put ` fails then the string that was just `strdup`-ed will leak memory Now the return value is checked and memory free-ed in case of failure