GitHub user rectang opened a pull request:

    https://github.com/apache/lucy-clownfish/pull/50

    CLOWNFISH-59 Fixes for Go Err bindings

    Fix a refcounting error and a non-polymorphic type conversion.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rectang/lucy-clownfish 
CLOWNFISH-59-Go-Err-fixes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucy-clownfish/pull/50.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #50
    
----
commit fde1b7dbd5cf460342eb82f94fde071d2f032149
Author: Marvin Humphrey <[email protected]>
Date:   2015-12-24T00:31:37Z

    Fix a missing refcount in the Go host error trapping.
    
    Err_trap returns an `incremented` Err object, so we need to return an
    incremented reference rather than return the pointer extracted from the
    Err Go wrapper directly.  If we don't do that, we're arming a time bomb
    which will go off the first GC after the caller disposes of their
    refcount.

commit aea2827d53879c2b819bb6e5bdd3444f758d0c51
Author: Marvin Humphrey <[email protected]>
Date:   2015-12-24T00:41:34Z

    Use correct wrapper for Err subtypes.
    
    Err subtypes need to be wrapped in their specificc Go structs, not just the
    basic ErrIMP.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to