cocos2d/cocos2d-x — pull request #2418 by sergey-shambir (2013-04-21 14:59:15+00:00)
Title: Refactored and fixed almost impossible memory leak.

Previously curl_slist_free_all(cHeaders) called in loop after
many break statements, so there was no garantue that it will be called
in all cases.

This change also simplifies code to make implementing PUT/DELETE methods
easier.