Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at mail-transaction-log-file.c:235

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

mail_transaction_log_file_alloc_in_memory

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log-file.c)expand/collapse
Show more  
 230  struct mail_transaction_log_file *
 231  mail_transaction_log_file_alloc_in_memory(struct mail_transaction_log *log)
 232  {
 233          struct mail_transaction_log_file *file;
 234   
 235[+]         file = mail_transaction_log_file_alloc(log, MEMORY_LOG_NAME);
expand/collapse

mail_transaction_log_file_alloc

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log-file.c)expand/collapse
Show more  
 48  struct mail_transaction_log_file *
 49  mail_transaction_log_file_alloc(struct mail_transaction_log *log,
 50                                  const char *path)
 51  {
 52          struct mail_transaction_log_file *file;
 53   
 54          file = i_new(struct mail_transaction_log_file, 1);
 55          file->log = log;
 56[+]         file->filepath = i_strdup(path);
expand/collapse

i_strdup

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 23  char *i_strdup(const char *str)
 24  {
 25      char *rv = strdup( str );
 26      if( !rv )
 27          abort();
 28      return rv;
Show more  
 57          file->fd = -1;
 58          return file;
Show more  
 236[+]         if (mail_transaction_log_init_hdr(log, &file->hdr) < 0) {
 237                  i_free(file);
 238                  return NULL;
Show more  




Change Warning 11433.24949 : Leak

Priority:
State:
Finding:
Owner:
Note: