Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at index-transaction.c:79

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

index_transaction_begin

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-transaction.c)expand/collapse
Show more  
 60  struct mailbox_transaction_context *
 61  index_transaction_begin(struct mailbox *box,
 62                          enum mailbox_transaction_flags flags)
 63  {
 64          struct index_mailbox *ibox = (struct index_mailbox *)box;
 65          struct mail_index_transaction *t;
 66          struct index_transaction_context *it;
 67          enum mail_index_transaction_flags trans_flags;
 68   
 69          if (!box->opened)
 70                  index_storage_mailbox_open(ibox);
 71   
 72          trans_flags = MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES;
 73          if ((flags & MAILBOX_TRANSACTION_FLAG_HIDE) != 0)
 74                  trans_flags |= MAIL_INDEX_TRANSACTION_FLAG_HIDE;
 75          if ((flags & MAILBOX_TRANSACTION_FLAG_EXTERNAL) != 0)
 76                  trans_flags |= MAIL_INDEX_TRANSACTION_FLAG_EXTERNAL;
 77          if ((flags & MAILBOX_TRANSACTION_FLAG_REFRESH) != 0)
 78                  (void)mail_index_refresh(ibox->index);
 79[+]         t = mail_index_transaction_begin(ibox->view, trans_flags);
expand/collapse

mail_index_transaction_begin

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-index-transaction.c)expand/collapse
Show more  
 1621  struct mail_index_transaction *
 1622  mail_index_transaction_begin(struct mail_index_view *view,
 1623                               enum mail_index_transaction_flags flags)
 1624  {
 1625          struct mail_index_transaction *t;
 1626   
 1627          /* don't allow syncing view while there's ongoing transactions */
 1628          mail_index_view_transaction_ref(view);
 1629          mail_index_view_ref(view);
 1630   
 1631[+]         t = i_new(struct mail_index_transaction, 1);
expand/collapse

i_malloc

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 7  void *i_malloc(size_t size)
 8  {
 9      void *rv = malloc(size);
 10      if( !rv )
 11          abort();
 12      return rv;
Show more  
 1632          t->refcount = 1;
 1633          t->v = trans_vfuncs;
 1634          t->view = view;
 1635          t->flags = flags;
 1636   
 1637          if (view->syncing) {
 1638                  /* transaction view cannot work if new records are being added
 1639                     in two places. make sure it doesn't happen. */
 1640                  t->no_appends = TRUE;
 1641                  t->first_new_seq = (uint32_t)-1;
 1642          } else {
 1643                  t->first_new_seq =
 1644                          mail_index_view_get_messages_count(t->view) + 1;
 1645          }
 1646   
 1647          i_array_init(&t->module_contexts,
 1648[+]                      I_MIN(5, mail_index_module_register.id));
 1649   
 1650          if (hook_mail_index_transaction_created != NULL)
 1651                  hook_mail_index_transaction_created(t);
 1652          return t;
Show more  
 80   
 81[+]         it = MAIL_STORAGE_CONTEXT(t);
 82          if (it == NULL) {
 83                  i_panic("mail storage transaction context mising for type %s",
 84                          box->storage->name);
 85          }
 86          it->flags = flags;
 87          return &it->mailbox_ctx;
Show more  




Change Warning 11720.25867 : Leak

Priority:
State:
Finding:
Owner:
Note: