lkml.org 
[lkml]   [2001]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] if (foo) kfree(foo) /kernel cleanup

diff -urN linux-2.5.1-pre4.orig/kernel/sysctl.c linux-2.5.1-pre4.kfree/kernel/sysctl.c
--- linux-2.5.1-pre4.orig/kernel/sysctl.c Fri Oct 5 21:23:53 2001
+++ linux-2.5.1-pre4.kfree/kernel/sysctl.c Sat Dec 1 09:06:30 2001
@@ -343,8 +343,7 @@
int error = parse_table(name, nlen, oldval, oldlenp,
newval, newlen, head->ctl_table,
&context);
- if (context)
- kfree(context);
+ kfree(context);
if (error != -ENOTDIR)
return error;
tmp = tmp->next;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.029 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site