Plug two minor Leaks (#5603)
authorAuke Kok <sofar+github@foo-projects.org>
Mon, 17 Apr 2017 07:04:58 +0000 (00:04 -0700)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Mon, 17 Apr 2017 07:04:58 +0000 (09:04 +0200)
commit97988a1044e0fce20a6ddc9e9cb6be395101cb2a
treef7f1eb194bd86cb241ca5488705ff092353dcdb2
parent73de17afa821ccea84a119096b267e05a77db3ff
Plug two minor Leaks (#5603)

* Resource leak: CHECK_FILE_ERR returns, without freeing chunk_name.

Found with static analysis.

* Resource leak: leaks `page` on error path.

Found with static analysis.
src/cguittfont/CGUITTFont.cpp
src/script/cpp_api/s_security.cpp