Fix memory leak introduced in 9e853438c5e9d56c07141220f2b30d7215ee9278

Thankfully coverity caught it before the release :)
1 job for master
Status Job ID Name Coverage
  External
passed Travis CI build status