rem: res = aug_alloc(sizeof(db_con_t), 0); memset(res, 0, sizeof(db_con_t)); t = aug_alloc(sizeof(struct con_postgres), (char*)res); res->tail = (unsigned long) t; memset((struct con_postgres*)res->tail, 0, sizeof(struct con_postgres));  if (connect_db(res, _sqlurl) < 0) { PLOG("db_init", "Error while trying to open database, FATAL\n"); aug_free(res); return((db_con_t *) 0);
add: if (!url) { LOG(L_ERR, "postgres:db_init: Invalid parameter value\n"); return 0;
context: db_con_t *db_init(const char* _sqlurl){	db_con_t* res;	void* t;	DLOG("db_init", "entry");	/*	** this is the root memory for this database connection.	*/	res = aug_alloc(sizeof(db_con_t), 0);	memset(res, 0, sizeof(db_con_t));	t = aug_alloc(sizeof(struct con_postgres), (char*)res);	res->tail = (unsigned long) t;	memset((struct con_postgres*)res->tail, 0, sizeof(struct con_postgres));	if (connect_db(res, _sqlurl) < 0)	{		PLOG("db_init", "Error while trying to open database, FATAL\n");		aug_free(res);		return((db_con_t *) 0);	}	return res;}