From 749fe6ea3ee4f9411d82ced21bba9029c410ed87 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 6 Oct 2009 22:00:55 +0200 Subject: [PATCH] Use para_malloc() instead of malloc() everywhere. --- fecdec_filter.c | 6 +++--- osx_write.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fecdec_filter.c b/fecdec_filter.c index 74e1b4f5..a7290e6a 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -246,13 +246,13 @@ static int add_slice(char *buf, struct fecdec_group *fg) slice_num = fg->h.slice_num; if (fg->num_slices == 0) { fg->num_slices = fg->h.slices_per_group; - fg->idx = malloc(fg->num_slices * sizeof(int)); - fg->data = malloc(fg->num_slices * sizeof(unsigned char *)); + fg->idx = para_malloc(fg->num_slices * sizeof(int)); + fg->data = para_malloc(fg->num_slices * sizeof(unsigned char *)); memset(fg->data, 0, fg->num_slices * sizeof(unsigned char *)); } r = fg->num_received_slices; fg->idx[r] = slice_num; - fg->data[r] = malloc(fg->h.slice_bytes); + fg->data[r] = para_malloc(fg->h.slice_bytes); memcpy(fg->data[r], buf, fg->h.slice_bytes); fg->num_received_slices++; return 1; diff --git a/osx_write.c b/osx_write.c index 4bdb0ceb..aa95d383 100644 --- a/osx_write.c +++ b/osx_write.c @@ -82,7 +82,7 @@ static void init_buffers(struct writer_node *wn) ptrptr = &powd->to; for (i = 0; i < conf->numbuffers_arg; i++) { - *ptrptr = malloc(sizeof(struct osx_buffer)); + *ptrptr = para_malloc(sizeof(struct osx_buffer)); (*ptrptr)->size = 0; (*ptrptr)->remaining = 0; (*ptrptr)->buffer = NULL; -- 2.39.2