From: Andre Noll Date: Sun, 4 Mar 2012 21:40:27 +0000 (+0100) Subject: Merge branch 't/audioc_cleanups' X-Git-Tag: v0.4.10~8 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=0703f75a276020f9645f987134d49402f7c019c0 Merge branch 't/audioc_cleanups' Has been cooking for long enough. --- 0703f75a276020f9645f987134d49402f7c019c0 diff --cc NEWS index e5ae590e,16e8e4e8..d9e0d0a3 --- a/NEWS +++ b/NEWS @@@ -2,15 -2,6 +2,16 @@@ 0.4.10 (to be announced) "heterogeneous vacuum" ----------------------------------------------- + - The --no_default_filters option of para_filter has been + depricated. It still works but has no effect and will be + removed in the next version. + - Cleanup and consolidation of the various wrappers for + write(), writev(), send() and friends. + - The obscure error messages on mmap() failures have been + replaced by meaningful messages. This affects mainly + para_afh. ++ - para_audioc: Cleanups and memory leak fixes. + ------------------------------------- 0.4.9 (2011-12-06) "hybrid causality" ------------------------------------- diff --cc audioc.c index 84c2a394,09b21ba9..d3e092e2 --- a/audioc.c +++ b/audioc.c @@@ -339,9 -341,11 +341,11 @@@ int main(int argc, char *argv[] size_t n = ret = recv_bin_buffer(fd, buf, bufsize); if (ret <= 0) break; - ret = write_all(STDOUT_FILENO, buf, &n); + ret = write_all(STDOUT_FILENO, buf, n); } while (ret >= 0); out: + free(buf); + free(args); if (ret < 0) PARA_ERROR_LOG("%s\n", para_strerror(-ret)); return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;