diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-16 14:40:27 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-16 14:40:27 +0000 |
commit | 129f932cce2288cbb6d28d6427ef325859e874dc (patch) | |
tree | 780bf71b23a4d2565820b8ed0f57ef2750de5e72 /libbb | |
parent | 54939f1e9842847a543d50ba3d3ae9c81ef25d80 (diff) | |
download | busybox-w32-129f932cce2288cbb6d28d6427ef325859e874dc.tar.gz busybox-w32-129f932cce2288cbb6d28d6427ef325859e874dc.tar.bz2 busybox-w32-129f932cce2288cbb6d28d6427ef325859e874dc.zip |
Random in-passing tweak.
git-svn-id: svn://busybox.net/trunk/busybox@14546 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/llist.c | 8 |
1 files changed, 2 insertions, 6 deletions
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) | |||
53 | llist_t *llist_free_one(llist_t *elm) | 53 | llist_t *llist_free_one(llist_t *elm) |
54 | { | 54 | { |
55 | llist_t *next = elm ? elm->link : NULL; | 55 | llist_t *next = elm ? elm->link : NULL; |
56 | #if ENABLE_DMALLOC /* avoid warnings from dmalloc's error-free-null option */ | 56 | free(elm); |
57 | if (elm) | 57 | return next; |
58 | #endif | ||
59 | free(elm); | ||
60 | elm = next; | ||
61 | return elm; | ||
62 | } | 58 | } |
63 | #endif | 59 | #endif |
64 | 60 | ||