Displaying 3 results from an estimated 3 matches for "array_free".
2006 Oct 27
1
another suggestion
On our solaris systems we quite often sees dovecot coredump
on exit when trying to free a null buffer. After including
if (array->buffer == NULL) return;
in array_free() in array.h these coredums have been avoided.
hmk
2014 Jul 28
2
not able to compile deleted_to_trash Plugin
...) > 0)
^
/usr/include/dovecot/array.h:143:18: note: in definition of macro 'array_count'
array_count_i(&(array)->arr)
^
deleted-to-trash-plugin.c:60:25: error: 'struct last_copy_info' has no member named 'mail_id'
array_free(&last_copy.mail_id);
^
/usr/include/dovecot/array.h:111:17: note: in definition of macro 'array_free'
array_free_i(&(array)->arr)
^
deleted-to-trash-plugin.c:61:27: error: 'struct last_copy_info' has no member named 'mail_id...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...)pgdb;
+}
+
+static void multi_pgsql_deinit_v(struct sql_db *db)
+{
+ struct multi_pgsql_error_result deinit;
+ struct multi_pgsql_db *pgdb;
+ struct multi_pgsql_pgc *pgc;
+ struct multi_pgsql_query *qry, *next_qry;
+ pool_t pool;
+ unsigned n;
+
+ dprintf(("%s: %p", __func__, db));
+
+ array_free(&db->module_contexts);
+
+ pgdb = (void *)db;
+ init_error_result(&deinit, DEINIT_ERROR);
+
+ n = pgdb->n_pgcs;
+ do {
+ pgc = pgdb->pgcs + --n;
+
+ qry = pgc->qry;
+ if (qry) abort_query(qry, &deinit.api);
+
+ reset_pgc(pgc);
+
+ } while (n);
+
+ qry = pgdb->quer...