X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=fecdec_filter.c;h=195dbaae1814d08316df54cf0597c914c6c1abd9;hb=d482305cd2ffba049a7987a73d541c5b901a0d49;hp=10f1c642034c9457af12e6c23a1450bbf5eb3245;hpb=6668ac4a8c7f2a92efb9e6d405d954beff77d230;p=paraslash.git diff --git a/fecdec_filter.c b/fecdec_filter.c index 10f1c642..195dbaae 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -102,18 +102,11 @@ static void clear_group(struct fecdec_group *fg) { int i; - for (i = 0; i < fg->num_slices; i++) { + for (i = 0; i < fg->num_slices; i++) free(fg->data[i]); - fg->data[i] = NULL; - fg->idx[i] = -1; - } free(fg->data); - fg->data = NULL; free(fg->idx); - fg->idx = NULL; - fg->num_slices = 0; - memset(&fg->h, 0, sizeof(struct fec_header)); - fg->num_received_slices = 0; + memset(fg, 0, sizeof(*fg)); } static int find_group(struct fec_header *h,