From 5b5c0305447c61a4cc4a0c29a43c2dc2b1befe34 Mon Sep 17 00:00:00 2001 From: landley Date: Wed, 1 Mar 2006 16:39:45 +0000 Subject: Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x) from before "if(x) free(x)". git-svn-id: svn://busybox.net/trunk/busybox@14396 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- modutils/insmod.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modutils/insmod.c') diff --git a/modutils/insmod.c b/modutils/insmod.c index d5d58a191..d40012d70 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -4231,9 +4231,8 @@ out: #ifdef CONFIG_FEATURE_CLEAN_UP if(fp) fclose(fp); - if(tmp1) { - free(tmp1); - } else { + free(tmp1); + if(!tmp1) { free(m_name); } free(m_filename); -- cgit v1.2.3-55-g6feb