Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1617

Fixes for memory leaks in generated code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.0
    • 1.7.0
    • wsdl2c tool

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jabbors Johan Abbors
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: