(a) Kill an outdated comment
(b) free(NULL) is okay
(*ptrptr)->remaining = 0;
(*ptrptr)->buffer = NULL;
ptrptr = &(*ptrptr)->next;
- /* This buffer is ready for filling (of course, it is empty!) */
}
*ptrptr = powd->from = powd->to;
}
* Hey! What's that? Coudn't this buffer size be fixed
* once (well, perhaps we just didn't allocate it yet)
*/
- if (b->buffer)
- free(b->buffer);
+ free(b->buffer);
b->buffer = malloc(size * sizeof(float));
b->size = size;
}