• George Nash's avatar
    Connect new/finalize to new/free for endpoints · 1ead4d2a
    George Nash authored
    This extends the endpoint struct for swig so the generated
    code will call oc_new_endpoint and oc_free_endpoint when
    new and finalize are called.
    
    Endpoint(s) are set to NULL after calling oc_free_endpoint or
    oc_free_server_endpoints is called from Java. This will prevent
    double freeing memory which would result in a segfault.
    
    code that returns or accept multiple endpoints in a list now
    indicate that fact because the variable name is plural
    'endpoints'
    
    Change-Id: Id11a1c98e724bf44b7ab82e92a529f3859f6e936
    Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
    1ead4d2a
oc_endpoint.i 3.74 KB