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 74e1b4f58ba7f93caedeae5c1097b78740d4d71e..a7290e6aa41a57570828c0968643c760a4e2e38e 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 4bdb0ceb9e1ec5c31ac1ea93e64bc2456633f74b..aa95d38314a169f7dcb37f83634ca969f97857c5 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;