From 129f932cce2288cbb6d28d6427ef325859e874dc Mon Sep 17 00:00:00 2001 From: landley Date: Thu, 16 Mar 2006 14:40:27 +0000 Subject: Random in-passing tweak. git-svn-id: svn://busybox.net/trunk/busybox@14546 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/llist.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libbb') diff --git a/libbb/llist.c b/libbb/llist.c index af0a9948c..5b70d6628 100644 --- a/libbb/llist.c +++ b/libbb/llist.c @@ -53,12 +53,8 @@ llist_t *llist_add_to_end(llist_t *list_head, char *data) llist_t *llist_free_one(llist_t *elm) { llist_t *next = elm ? elm->link : NULL; -#if ENABLE_DMALLOC /* avoid warnings from dmalloc's error-free-null option */ - if (elm) -#endif - free(elm); - elm = next; - return elm; + free(elm); + return next; } #endif -- cgit v1.2.3-55-g6feb