[pacman-dev] [PATCH 2/2] pacsort: correct list freeing
Pang Yan Han
pangyanhan at gmail.com
Mon Aug 22 01:00:34 EDT 2011
Signed-off-by: Pang Yan Han <pangyanhan at gmail.com>
---
src/util/pacsort.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index 48d183b..caaac1f 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)
--
1.7.6
More information about the pacman-dev
mailing list