leak-detective: Fix compile warning due to unused variable if LD is disabled
This commit is contained in:
parent
f654324e5e
commit
e9e643b240
|
@ -175,13 +175,13 @@ void library_deinit()
|
||||||
this->public.integrity->destroy(this->public.integrity);
|
this->public.integrity->destroy(this->public.integrity);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LEAK_DETECTIVE
|
|
||||||
if (lib->leak_detective)
|
if (lib->leak_detective)
|
||||||
{
|
{
|
||||||
lib->leak_detective->report(lib->leak_detective, detailed);
|
lib->leak_detective->report(lib->leak_detective, detailed);
|
||||||
lib->leak_detective->destroy(lib->leak_detective);
|
lib->leak_detective->destroy(lib->leak_detective);
|
||||||
lib->leak_detective = NULL;
|
lib->leak_detective = NULL;
|
||||||
}
|
}
|
||||||
|
#ifdef LEAK_DETECTIVE
|
||||||
if (this->ld_out && this->ld_out != stderr)
|
if (this->ld_out && this->ld_out != stderr)
|
||||||
{
|
{
|
||||||
fclose(this->ld_out);
|
fclose(this->ld_out);
|
||||||
|
|
Loading…
Reference in New Issue