summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPang Yan Han <pangyanhan@gmail.com>2011-08-22 13:00:34 +0800
committerDan McGee <dan@archlinux.org>2011-08-22 08:53:01 -0500
commit343ea8171815debe3fc5a55ad0eeaf6c35f90bb9 (patch)
tree75c2d3acb0bde743adc939ebde46068f886068f7
parentffdfc825234987b9f974d7a8a152babb10cb8663 (diff)
pacsort: correct list freeing
Signed-off-by: Pang Yan Han <pangyanhan@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--src/util/pacsort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index 8236c959..77edda7a 100644
--- a/src/util/pacsort.c
+++ b/src/util/pacsort.c
@@ -158,8 +158,8 @@ static void list_free(struct list_t *list)
free(list->list[i]);
}
free(list->list);
- free(list);
}
+ free(list);
}
static char *explode(struct buffer_t *buffer, struct list_t *list)