Messages in this thread | | | Date | Wed, 14 Oct 2009 17:12:40 +0200 | From | Simon Kagstrom <> | Subject | Re: [PATCH v6 5/5]: mtdoops: refactor as a kmsg_dumper |
| |
On Wed, 14 Oct 2009 15:41:24 +0200 Simon Kagstrom <simon.kagstrom@netinsight.net> wrote:
> -static void __exit mtdoops_console_exit(void) > +static void __exit mtdoops_exit(void) > { > struct mtdoops_context *cxt = &oops_cxt; > > unregister_mtd_user(&mtdoops_notifier); > - unregister_console(&mtdoops_console); > kfree(cxt->name);
The kfree should go as well since cxt->name is no longer allocated. I'll await further comments and send a new patch tomorrow.
// Simon
| |