Coverity CID 1426750 and CID 1426749: Calling two functions without control

We left a memory leak in legacy/trac#23271 (moved); We call get_controller_cookie_file_name() and get_ext_or_auth_cookie_file_name() without control.