pkg

Check-in [e34b86c5aa]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:pkg check -d: Fix crash, should not close the db when reopened, it will be closed later Fixes #814
Timelines: family | ancestors | descendants | both | trunk | gsoc2013
Files: files | file ages | folders
SHA1: e34b86c5aae4ab0bd4b79d067e04e028aeec1be3
User & Date: bryan@shatow.net 2014-06-11 17:57:41
Context
2014-06-11
18:25
Ad a pkgdb_downgrade_lock() to go from EXCLUSIVE to ADVISORY check-in: 9c196b93c3 user: bryan@shatow.net tags: trunk, gsoc2013
17:57
pkg check -d: Fix crash, should not close the db when reopened, it will be closed later Fixes #814 check-in: e34b86c5aa user: bryan@shatow.net tags: trunk, gsoc2013
17:47
pkg check -d: Plug a memory leak check-in: 38f68bd875 user: bryan@shatow.net tags: trunk, gsoc2013
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/check.c.

196
197
198
199
200
201
202
203
204
205
206
207
208
209
210

cleanup:
	if (pkgs != NULL)
		free(pkgs);
	if (jobs != NULL)
		pkg_jobs_free(jobs);
	pkgdb_release_lock(db, PKGDB_LOCK_ADVISORY);
	pkgdb_close(db);

	return (EPKG_OK);
}

static void
check_summary(struct pkgdb *db, struct deps_head *dh)
{







<







196
197
198
199
200
201
202

203
204
205
206
207
208
209

cleanup:
	if (pkgs != NULL)
		free(pkgs);
	if (jobs != NULL)
		pkg_jobs_free(jobs);
	pkgdb_release_lock(db, PKGDB_LOCK_ADVISORY);


	return (EPKG_OK);
}

static void
check_summary(struct pkgdb *db, struct deps_head *dh)
{