Fix error path leaks [coverity CID 56690 56691]
Fix error path leak [coverity CID 56689]
Fix error path leak [coverity CID 56688]
Fix attribute value leak [coverity CID 56687]
Fix leaks in free attr_value in XML parsing
Fix a pile of resource leak on error path from coverity
(flickcurl_galleries_addPhoto): Simplify and fix response