[Frugalware-darcs] pacman-g2: pacman_db_search(): flush the list of needles automatically after a search

VMiklos vmiklos at frugalware.org
Sat Jun 30 18:01:40 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman-g2;a=darcs_commitdiff;h=20070630155947-e2957-47a674bc456746d028c292f54344b40de4e0dd4f.gz;

[pacman_db_search(): flush the list of needles automatically after a search
VMiklos <vmiklos at frugalware.org>**20070630155947] {
hunk ./lib/libpacman/pacman.c 720
+	pmlist_t *ret;
+
hunk ./lib/libpacman/pacman.c 728
-	return(_pacman_db_search(db, handle->needles));
+	ret = _pacman_db_search(db, handle->needles);
+	FREELIST(handle->needles);
+	return(ret);
}


More information about the Frugalware-darcs mailing list