Re: [PATCH 1/6] genksyms: fix memory leak when the same symbol is added from source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



…
> +++ b/scripts/genksyms/genksyms.c
> @@ -239,6 +239,7 @@ static struct symbol *__add_symbol(const char *name, enum symbol_type type,
>  						"unchanged\n");
>  				}
>  				sym->is_declared = 1;
> +				free_list(defn, NULL);
>  				return sym;
>  			} else if (!sym->is_declared) {
>  				if (sym->is_override && flag_preserve) {
…

Would you like to complete the data processing by using a corresponding goto chain?

Regards,
Markus





[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux