projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b75029b
)
leak
author
Nils Durner
<durner@gnunet.org>
Sat, 3 Oct 2009 19:01:38 +0000
(19:01 +0000)
committer
Nils Durner
<durner@gnunet.org>
Sat, 3 Oct 2009 19:01:38 +0000
(19:01 +0000)
src/util/container_slist.c
patch
|
blob
|
history
diff --git
a/src/util/container_slist.c
b/src/util/container_slist.c
index 4d3c71a38a1735225052df3afa295a1e8915ace6..192429e6c23aeae520ac2c5121a2fa15e32895bf 100644
(file)
--- a/
src/util/container_slist.c
+++ b/
src/util/container_slist.c
@@
-112,13
+112,14
@@
create_elem (enum GNUNET_CONTAINER_SListDisposition disp,
e = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_SList_Elem) + len);
memcpy (&e[1], buf, len);
e->elem = (void*) &e[1];
+ e->disp = GNUNET_CONTAINER_SLIST_DISPOSITION_DYNAMIC;
}
else
{
e = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_SList_Elem));
e->elem = (void*) buf;
+ e->disp = disp;
}
- e->disp = disp;
e->len = len;
return e;
}