mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
do not cleanup staticly allocated memory unless we are in valgrind mode
This commit is contained in:
parent
3c193520ee
commit
82c46f2238
3 changed files with 9 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ void pa_log_set_ident(const char *p) {
|
|||
/* To make valgrind shut up. */
|
||||
static void ident_destructor(void) PA_GCC_DESTRUCTOR;
|
||||
static void ident_destructor(void) {
|
||||
if (!pa_in_valgrind())
|
||||
return;
|
||||
|
||||
pa_xfree(log_ident);
|
||||
pa_xfree(log_ident_local);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue