mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cov: make obvious how free of memory happens
When there is allocation, it needs also deallocator. Remove no longer needed coverity warning masking.
This commit is contained in:
parent
e7a54c1a50
commit
cb16f5053f
@ -187,7 +187,7 @@ static void _run_test(struct test_details *t, bool use_colour, unsigned *passed,
|
|||||||
if (setjmp(test_k))
|
if (setjmp(test_k))
|
||||||
fprintf(stderr, "%s[ FAIL]%s %s\n", red(use_colour), normal(use_colour), t->path);
|
fprintf(stderr, "%s[ FAIL]%s %s\n", red(use_colour), normal(use_colour), t->path);
|
||||||
else {
|
else {
|
||||||
if (ts->fixture_init)
|
if (ts->fixture_init && ts->fixture_exit)
|
||||||
fixture = ts->fixture_init();
|
fixture = ts->fixture_init();
|
||||||
else
|
else
|
||||||
fixture = NULL;
|
fixture = NULL;
|
||||||
@ -199,7 +199,6 @@ static void _run_test(struct test_details *t, bool use_colour, unsigned *passed,
|
|||||||
|
|
||||||
(*passed)++;
|
(*passed)++;
|
||||||
fprintf(stderr, "%s[ OK]%s\n", green(use_colour), normal(use_colour));
|
fprintf(stderr, "%s[ OK]%s\n", green(use_colour), normal(use_colour));
|
||||||
/* coverity[leaked_storage] fixture released by fixture_exit */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user