Fixed cppcheck (error) Memory leak: appname

Status Job ID Name Coverage
  Test
passed #2697
Linux
clang-c++11-debug

00:00:16

passed #2699
Linux
clang-c++11-release

00:00:37

passed #2696
Linux
gcc-c++11-debug

00:00:17

passed #2698
Linux
gcc-c++11-release

00:00:21