mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-07 21:18:59 +03:00
cov: avoid double call of free_hints() on error path
Since we 'free_hints()' on return error path from call of _read_hint_file(), avoid calling it twice in the middle of error path process.
This commit is contained in:
parent
eb06832b37
commit
cca2a652d1
@ -801,10 +801,8 @@ static int _read_hint_file(struct cmd_context *cmd, struct dm_list *hints, int *
|
||||
if (fclose(fp))
|
||||
stack;
|
||||
|
||||
if (!ret) {
|
||||
free_hints(hints);
|
||||
if (!ret)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!found)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user