Project

General

Profile

Bug #126 » 0006-Register-the-free-function-for-nodes-of-the-radix-tr.patch

fix the current unittests registering a free() function when the trees are created - Pablo Rincon, 04/12/2010 08:13 AM

View differences:

src/util-radix-tree.c
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
node[0] = SCRadixAddKeyGeneric((uint8_t *)"abaa", 32, tree, NULL);
......
SCRadixTree *tree = NULL;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
SCRadixAddKeyGeneric((uint8_t *)"aaaaaa", 48, tree, NULL);
SCRadixAddKeyGeneric((uint8_t *)"aaaaab", 48, tree, NULL);
......
struct sockaddr_in servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
struct sockaddr_in servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
SCRadixTree *tree = NULL;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* Let us have our team here ;-) */
SCRadixAddKeyGeneric((uint8_t *)"Victor", 48, tree, NULL);
......
SCRadixTree *tree = NULL;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* Let us have our team here ;-) */
SCRadixAddKeyGeneric((uint8_t *)"Victor", 48, tree, NULL);
......
struct sockaddr_in6 servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
struct sockaddr_in6 servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
struct sockaddr_in servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
struct sockaddr_in servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
struct sockaddr_in servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
struct sockaddr_in servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
struct sockaddr_in6 servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
struct sockaddr_in6 servaddr;
int result = 1;
tree = SCRadixCreateRadixTree(NULL, NULL);
tree = SCRadixCreateRadixTree(free, NULL);
/* add the keys */
bzero(&servaddr, sizeof(servaddr));
......
int SCRadixTestIPV4NetblockInsertion15(void)
{
SCRadixTree *tree = NULL;
SCRadixNode *node = NULL;
struct sockaddr_in servaddr;
int result = 1;
(3-3/3)