diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-07-02 13:49:05 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-07-02 13:49:05 +0000 |
commit | 76aac1b58af3a2c8488875d0f3d0e994563d80ca (patch) | |
tree | d912c773ff03732e5e1717aeb9df63cd10ac70ea /src/fragmentation | |
parent | ec2d856c3d790a042f6edf7ad0487bc4024d15c4 (diff) | |
download | gnunet-76aac1b58af3a2c8488875d0f3d0e994563d80ca.tar.gz gnunet-76aac1b58af3a2c8488875d0f3d0e994563d80ca.zip |
added dv twice and dht never?
Diffstat (limited to 'src/fragmentation')
-rw-r--r-- | src/fragmentation/fragmentation.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c index 58fcd834a..ecd82b2c4 100644 --- a/src/fragmentation/fragmentation.c +++ b/src/fragmentation/fragmentation.c | |||
@@ -35,10 +35,12 @@ | |||
35 | #include "gnunet_fragmentation_lib.h" | 35 | #include "gnunet_fragmentation_lib.h" |
36 | #include "gnunet_protocols.h" | 36 | #include "gnunet_protocols.h" |
37 | #include "gnunet_util_lib.h" | 37 | #include "gnunet_util_lib.h" |
38 | |||
38 | /** | 39 | /** |
39 | * Message fragment. This header is followed | 40 | * Message fragment. This header is followed |
40 | * by the actual data of the fragment. | 41 | * by the actual data of the fragment. |
41 | */ | 42 | */ |
43 | |||
42 | struct Fragment | 44 | struct Fragment |
43 | { | 45 | { |
44 | 46 | ||
@@ -181,10 +183,16 @@ void | |||
181 | GNUNET_FRAGMENT_context_destroy (struct GNUNET_FRAGMENT_Context *ctx) | 183 | GNUNET_FRAGMENT_context_destroy (struct GNUNET_FRAGMENT_Context *ctx) |
182 | { | 184 | { |
183 | struct GNUNET_FRAGEMENT_Ctxbuffer *buffer; | 185 | struct GNUNET_FRAGEMENT_Ctxbuffer *buffer; |
184 | for(buffer = ctx->buffer; buffer!=NULL; buffer = buffer->next){ | 186 | struct GNUNET_FRAGEMENT_Ctxbuffer *temp; |
185 | GNUNET_free(buffer->num); | 187 | buffer = ctx->buffer; |
186 | GNUNET_free(buffer); | 188 | |
187 | } | 189 | while (buffer != NULL) |
190 | { | ||
191 | temp = buffer->next; | ||
192 | GNUNET_free(buffer->num); | ||
193 | GNUNET_free(buffer); | ||
194 | buffer = temp; | ||
195 | } | ||
188 | GNUNET_free(ctx); | 196 | GNUNET_free(ctx); |
189 | GNUNET_assert (0); | 197 | GNUNET_assert (0); |
190 | } | 198 | } |