Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at virtual-transaction.c:93

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

virtual_transaction_created

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/virtual/virtual-transaction.c)expand/collapse
Show more  
 73  static void virtual_transaction_created(struct mail_index_transaction *t)
 74  {
 75          struct mailbox *box = MAIL_STORAGE_CONTEXT(t->view);
 76   
 77          /* index can be for mailbox list index, in which case box=NULL */
 78          if (box != NULL &&
 79              strcmp(box->storage->name, VIRTUAL_STORAGE_NAME) == 0) {
 80                  struct virtual_mailbox *mbox = (struct virtual_mailbox *)box;
 81                  struct virtual_transaction_context *mt;
 82   
 83                  mt = i_new(struct virtual_transaction_context, 1);
 84                  mt->ictx.trans = t;
 85                  mt->ictx.super = t->v;
 86   
 87                  t->v.commit = virtual_transaction_commit;
 88                  t->v.rollback = virtual_transaction_rollback;
 89[+]                 MODULE_CONTEXT_SET(t, mail_storage_mail_index_module, mt);
 90   
 91                  i_array_init(&mt->backend_transactions,
 92                               array_count(&mbox->backend_boxes));
 93[+]                 index_transaction_init(&mt->ictx, &mbox->ibox);
expand/collapse

index_transaction_init

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-transaction.c)expand/collapse
Show more  
 8  void index_transaction_init(struct index_transaction_context *t,
 9                              struct index_mailbox *ibox)
 10  {
 11          t->mailbox_ctx.box = &ibox->box;
 12          t->ibox = ibox;
 13   
 14          array_create(&t->mailbox_ctx.module_contexts, default_pool,
 15                       sizeof(void *), 5);
 16   
 17[+]         t->trans_view = mail_index_transaction_open_updated_view(t->trans);
expand/collapse

mail_index_transaction_open_updated_view

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-index-transaction-view.c)expand/collapse
Show more  
 453  struct mail_index_view *
 454  mail_index_transaction_open_updated_view(struct mail_index_transaction *t)
 455  {
 456          struct mail_index_view_transaction *tview;
 457   
 458          if (t->view->syncing) {
 459                  /* transaction view is being synced. while it's done, it's not 
 460                     possible to add new messages, but the view itself might 
 461                     change. so we can't make a copy of the view. */
 462                  mail_index_view_ref(t->view);
 463                  return t->view;
 464          }
 465   
 466[+]         tview = i_new(struct mail_index_view_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  
 467[+]         mail_index_view_clone(&tview->view, t->view);
 468          tview->view.v = trans_view_vfuncs;
 469          tview->super = &t->view->v;
 470          tview->t = t;
 471   
 472          mail_index_transaction_ref(t);
 473          return &tview->view;
Show more  
 18[+]         t->cache_view = mail_cache_view_open(ibox->cache, t->trans_view);
 19[+]         t->cache_trans = mail_cache_get_transaction(t->cache_view, t->trans);
 20  }
Show more  
 94          }
 95   
 96          if (next_hook_mail_index_transaction_created != NULL)
 97                  next_hook_mail_index_transaction_created(t);
 98  }
Show more  




Change Warning 11508.24730 : Leak

Because they are very similar, this warning shares annotations with warning 11508.24731.

Priority:
State:
Finding:
Owner:
Note: