Use para_malloc() instead of malloc() everywhere.
authorAndre Noll <maan@systemlinux.org>
Tue, 6 Oct 2009 20:00:55 +0000 (22:00 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 6 Oct 2009 20:00:55 +0000 (22:00 +0200)
fecdec_filter.c
osx_write.c

index 74e1b4f..a7290e6 100644 (file)
@@ -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;
index 4bdb0ce..aa95d38 100644 (file)
@@ -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;