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

Bill Blough updated AXIS2C-1617:
--------------------------------
    Component/s: code generation
                     (was: wsdl2c tool)

> Fixes for memory leaks in generated code
> ----------------------------------------
>
>                 Key: AXIS2C-1617
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1617
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: 1.6.0
>            Reporter: Johan Abbors
>            Priority: Major
>              Labels: bug, patch
>             Fix For: 1.7.0
>
>         Attachments: axis2_codegen_free_memory_after_attribute_parse.patch, 
> axis2_codegen_free_memory_created_namespace.patch, 
> axis2_codegen_free_memory_wrapper_adb_obj.patch
>
>
> The generated code leaks memory. I have been able to plug some of the memory 
> leaks with the attached patches but one leak that I not was able to plug is 
> freeing allocated memory for created attributes.
> I run our generate code through valgrind and got many similar reports like 
> the one below:
> ==10087==    at 0x4023F50: malloc (vg_replace_malloc.c:236)
> ==10087==    by 0x49FABDC: axutil_allocator_malloc_impl (in 
> /usr/lib/axis2/lib/libaxutil.so.0.6.0)
> ==10087==    by 0x4A2163C: axiom_attribute_create (in 
> /usr/lib/axis2/lib/libaxis2_axiom.so.0.6.0)
> ==10087==    by 0x435E0A5: adb_bookmarkSetChoice_type1_serialize_obj 
> (adb_bookmarkSetChoice_type1.c:550)
> ==10087==    by 0x442B641: axis2_extension_mapper_serialize 
> (axis2_extension_mapper.c:5324)
> ==10087==    by 0x435E8EC: adb_bookmarkSetChoice_type1_serialize 
> (adb_bookmarkSetChoice_type1.c:433)
> ==10087==    by 0x4360B2B: adb_bookmarkSet_type0_serialize_obj 
> (adb_bookmarkSet_type0.c:1234)
> ==10087==    by 0x442BA1F: axis2_extension_mapper_serialize 
> (axis2_extension_mapper.c:4223)
> ==10087==    by 0x436139C: adb_bookmarkSet_type0_serialize 
> (adb_bookmarkSet_type0.c:814)
> ==10087==    by 0x440C012: adb_setBookmarks_serialize_obj 
> (adb_setBookmarks.c:736)
> ==10087==    by 0x440C386: adb_setBookmarks_serialize (adb_setBookmarks.c:537)
> ==10087==    by 0x44427DD: axis2_stub_op_Kolibre_DaisyOnline_setBookmarks 
> (axis2_stub_Kolibre_DaisyOnline.c:2135)



--
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