axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johan Abbors (JIRA)" <>
Subject [jira] [Created] (AXIS2C-1617) Fixes for memory leaks in generated code
Date Fri, 16 Nov 2012 12:42:12 GMT
Johan Abbors created AXIS2C-1617:

             Summary: Fixes for memory leaks in generated code
                 Key: AXIS2C-1617
             Project: Axis2-C
          Issue Type: Bug
          Components: wsdl2c tool
    Affects Versions: 1.6.0
            Reporter: Johan Abbors
             Fix For: 1.7.0

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 when
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/
==10087==    by 0x4A2163C: axiom_attribute_create (in /usr/lib/axis2/lib/
==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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message