[ 
https://issues.apache.org/jira/browse/AXIS2C-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Lazarski resolved AXIS2C-1519.
-------------------------------------
    Fix Version/s:     (was: 1.7.0)
       Resolution: Fixed

There is now a native WSDL2C code generator however it had the same issue. 

  The native WSDL2C code generator was producing client stubs that leaked
    the op_qname allocation on error paths. When serialization or invocation
    failed, the generated code would return NULL without freeing the qname
    that was created earlier in the function.
    
    Fix: Add axutil_qname_free() calls before each early return in the
    generated operation stub functions:
    - Before return when payload serialization fails
    - Before return when service client invocation fails
    
    This ensures the qname is properly freed regardless of success or failure,
    eliminating the memory leak described in AXIS2C-1519.
 

> WSDL2C with xml mapping generates client code with memory leak
> --------------------------------------------------------------
>
>                 Key: AXIS2C-1519
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1519
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>            Reporter: Alessandro Riva
>            Priority: Major
>              Labels: patch
>         Attachments: patchAxis2Java.zip
>
>
> Generated client code using WSDL2C with xml mapping (-d none) has a memory 
> leak with namespace allocation ("creating  the operations" section)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to