Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg = NULL strikes back.
Vsevolod Stakhov committed 11 years ago
commit 821008e0abfc4339794e4871669a0cff4a7dae1e
parent e8ddbd2
1 file changed +6 -0
modified libpkg/pkg_jobs.c
@@ -1027,11 +1027,17 @@ pkg_jobs_try_remote_candidate(struct pkg_jobs *j, const char *pattern,

			rc = pkg_jobs_process_remote_pkg(j, p, true, false, true,
				NULL, true);
+
			/* Avoid freeing */
+
			p = NULL;
			break;
		}
		sbuf_reset(qmsg);
	}

+

+
	if (p != NULL)
+
		pkg_free(p);
+

	sbuf_free(qmsg);
	pkgdb_it_free(it);