The following commit has been merged in the master branch:
commit 7a79f5a1fafa0043e555cad4f2d0ed6d5c3098d4
Author: Guillem Jover <[email protected]>
Date: Sat Feb 26 17:58:07 2011 +0100
dpkg: Refactor match_node deallocation into new match_node_free()
diff --git a/src/processarc.c b/src/processarc.c
index b9b80f2..7b463ef 100644
--- a/src/processarc.c
+++ b/src/processarc.c
@@ -172,6 +172,14 @@ struct match_node {
char *filename;
};
+static void
+match_node_free(struct match_node *node)
+{
+ free(node->filetype);
+ free(node->filename);
+ free(node);
+}
+
void process_archive(const char *filename) {
static const struct tar_operations tf = {
.read = tarfileread,
@@ -939,9 +947,7 @@ void process_archive(const char *filename) {
cidir);
}
match_head = match_node->next;
- free(match_node->filetype);
- free(match_node->filename);
- free(match_node);
+ match_node_free(match_node);
}
/* The directory itself. */
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]