mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
silence clang analyzer: Memory Error, Memory leak
This commit is contained in:
parent
78bd97ac9a
commit
2c47dd98c5
1 changed files with 9 additions and 0 deletions
|
|
@ -113,5 +113,14 @@ int main(int argc, char *argv[]) {
|
|||
char buf = 0;
|
||||
(void) write(pok[1], &buf, 1 );
|
||||
close_fd(&pok[1]);
|
||||
|
||||
#ifdef __clang_analyzer__
|
||||
// the clang static analyzer warns about a memleak here,
|
||||
// but we don't care. The OS will clean up after us in a jiffy.
|
||||
for (i=0; envp && envp[i]; ++i) {
|
||||
free (envp[i]);
|
||||
}
|
||||
free (envp);
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue