Save some code: always allocate the tag object, and free it when it turns out to be empty.
Attach a file by drag & drop or click to upload