[APPCOMPAT] Fix a memory leak in a failure case (CID 1401161), a 0-length memset...