[pacman-dev] [PATCH] Add CheckNewVersion option.

Nagy Gabor ngaba at bibl.u-szeged.hu
Tue Feb 19 10:41:44 EST 2008


I like this patch, excellent work.
I think I found a little memleak...

> +			alpm_list_t *newversion = checknewversion();
> +			if(newversion) {
> +				printf(_(":: the following packages should be upgraded first :\n"));
> +				list_display("   ", newversion);
> +				if(yesno(_(":: Do you want to cancel the current operation\n"
> +								":: and upgrade these packages now? [Y/n] "))) {
> +					FREELIST(targs);
> +					targs = newversion;
> +					config->flags = 0;
> +					config->op_s_upgrade = 0;
> +				}
> +				printf("\n");
> +			}

If I answer with no, newversion list isn't freed.

Bye


----------------------------------------------------
SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu
This mail sent through IMP: http://horde.org/imp/





More information about the pacman-dev mailing list