[
https://issues.apache.org/jira/browse/THRIFT-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew McGeachie resolved THRIFT-688.
-------------------------------------
Resolution: Fixed
Patch applied.
> cocoa: Memory management rules violated by -newProtocolOnTransport:
> -------------------------------------------------------------------
>
> Key: THRIFT-688
> URL: https://issues.apache.org/jira/browse/THRIFT-688
> Project: Thrift
> Issue Type: Bug
> Components: Library (Cocoa)
> Affects Versions: 0.2
> Reporter: Kevin Ballard
> Attachments: TBinaryProtocol.patch
>
>
> The standard Cocoa memory management rules are not followed in the
> implementation/usage of -newProtocolOnTransport:. According to the memory
> management rules, methods starting with "new" return an owned object, but the
> current implementation of -[TBinaryProtocol newProtocolOnTransport:] (and its
> subsequent usage in TSocketServer) returns an autoreleased object instead.
> The attached patch fixes this, and can be verified by running the Clang
> Static Analyzer on the code both before and after the patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.