Fix some memory errors
Fix some memory errors

In one case, a free was missing. In other, the null terminator was written
one position after the position it should have been.

pombredanne/rlite,seppo0010/rlite,jqk6/rlite,seppo0010/rlite,pombredanne/rlite,jqk6/rlite,seppo0010/rlite