You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Zhijun Fu (JIRA)" <ji...@apache.org> on 2018/05/04 08:14:00 UTC

[jira] [Commented] (ARROW-2539) [Plasma] Use unique_ptr instead of raw pointer

    [ https://issues.apache.org/jira/browse/ARROW-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16463537#comment-16463537 ] 

Zhijun Fu commented on ARROW-2539:
----------------------------------

I've created an PR for this:

[https://github.com/apache/arrow/pull/1993]

 

> [Plasma] Use unique_ptr instead of raw pointer
> ----------------------------------------------
>
>                 Key: ARROW-2539
>                 URL: https://issues.apache.org/jira/browse/ARROW-2539
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Plasma (C++)
>            Reporter: Zhijun Fu
>            Priority: Minor
>
> There are some places in Plasma where explicit new & delete are used, forgetting to delete can cause memory leak. Use unique_ptr instead when possible so that memory gets deleted automatically.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)