OFSecureData: Fix memory leak on error