projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0cbd0ac
)
audioc.c: Always free IO buffer.
author
Andre Noll
<maan@systemlinux.org>
Fri, 13 Jan 2012 22:39:56 +0000
(23:39 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sun, 5 Feb 2012 19:15:13 +0000
(20:15 +0100)
This 8K buffer is allocated but never freed.
audioc.c
patch
|
blob
|
history
diff --git
a/audioc.c
b/audioc.c
index 1baa6c34b310fd48517b6df9bd9384819e6caa8d..5f92888979387b3dbe443b085e98ae0d9632ebe8 100644
(file)
--- a/
audioc.c
+++ b/
audioc.c
@@
-344,6
+344,7
@@
int main(int argc, char *argv[])
ret = write_all(STDOUT_FILENO, buf, &n);
} while (ret >= 0);
out:
ret = write_all(STDOUT_FILENO, buf, &n);
} while (ret >= 0);
out:
+ free(buf);
if (ret < 0)
PARA_ERROR_LOG("%s\n", para_strerror(-ret));
return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;
if (ret < 0)
PARA_ERROR_LOG("%s\n", para_strerror(-ret));
return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;