Fix two memory leaks in html.c.

They're in htmlInput and encodeTags.
Both are caused by using a temp variable to hold a pointer to
the result of htmlAttrVal and then failing to free the memory after
we've finished with it.