Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-19

Memory leak when generating ID for inserts

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.1
    • Affects Version/s: 0.1.0
    • Component/s: None
    • None

      ==26889== 256 bytes in 2 blocks are definitely lost in loss record 6 of 9
      ==26889== at 0x4C2ABA0: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==26889== by 0x7E83F9: _emalloc (zend_alloc.c:2427)
      ==26889== by 0x6F0FF79: php_phongo_malloc (php_phongo.c:1177)
      ==26889== by 0x6EDBAC3: bson_malloc (bson-memory.c:67)
      ==26889== by 0x6ECF4EC: bson_new (bson.c:1877)
      ==26889== by 0x6EB4570: zval_to_bson (bson.c:804)
      ==26889== by 0x6EBD269: zim_WriteBatch_insert (WriteBatch.c:104)
      ==26889== by 0x86AA5A: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
      ==26889== by 0x86B231: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:693)
      ==26889== by 0x86A0C9: execute_ex (zend_vm_execute.h:363)
      ==26889== by 0x86A152: zend_execute (zend_vm_execute.h:388)
      ==26889== by 0x8236A8: zend_execute_scripts (zend.c:1344)

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: