Fix small memory leak incase of errors
parent
58f634bffe
commit
24a934275f
|
@ -2481,8 +2481,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
// We check if it's a Ping command with no body.
|
||||
// See http://msdn.microsoft.com/en-us/library/ee200913(v=exchg.80).aspx for details
|
||||
if ([cmdName caseInsensitiveCompare: @"Ping"] != NSOrderedSame && [cmdName caseInsensitiveCompare: @"GetAttachment"] != NSOrderedSame && [cmdName caseInsensitiveCompare: @"Sync"] != NSOrderedSame)
|
||||
{
|
||||
RELEASE(context);
|
||||
RELEASE(pool);
|
||||
return [NSException exceptionWithHTTPStatus: 500];
|
||||
}
|
||||
}
|
||||
|
||||
if (d)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue