Fixed potential memory leak
Fixed potential memory leak

Fixes #1739

SoftCreatR/WCF,Cyperghost/WCF,NBZ4live/WCF,Cyperghost/WCF,cashcat/WCF-1,WoltLab/WCF,SoftCreatR/WCF,joshuaruesweg/WCF,joshuaruesweg/WCF,MenesesEvandro/WCF,Morik/WCF,MeinAccount/WCF,0xLeon/WCF,joshuaruesweg/WCF,MenesesEvandro/WCF,0xLeon/WCF,MeinAccount/WCF,Morik/WCF,ramiusGitHub/WCF,ramiusGitHub/WCF,Cyperghost/WCF,SoftCreatR/WCF,0xLeon/WCF,WoltLab/WCF,cashcat/WCF-1,Morik/WCF,WoltLab/WCF,Morik/WCF,WoltLab/WCF,Cyperghost/WCF,NBZ4live/WCF,SoftCreatR/WCF,Cyperghost/WCF