Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 1 Dec 2001 06:31:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 1 Dec 2001 06:31:34 -0500 Received: from netfinity.realnet.co.sz ([196.28.7.2]:15760 "HELO netfinity.realnet.co.sz") by vger.kernel.org with SMTP id ; Sat, 1 Dec 2001 06:31:11 -0500 Date: Sat, 1 Dec 2001 13:36:03 +0200 (SAST) From: Zwane Mwaikambo X-X-Sender: To: Linux Kernel Subject: [PATCH] if (foo) kfree(foo) /kernel cleanup Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/