Coverity: Resource leak: close fds and free array before return
Signed-off-by: Anthony Youngman <anthony@youngman.org.uk> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
parent
4a670aabdc
commit
29446c962f
3
Dump.c
3
Dump.c
|
@ -301,6 +301,9 @@ int Restore_metadata(char *dev, char *dir, struct context *c,
|
||||||
}
|
}
|
||||||
if (c->verbose >= 0)
|
if (c->verbose >= 0)
|
||||||
printf("%s restored from %s.\n", dev, fname);
|
printf("%s restored from %s.\n", dev, fname);
|
||||||
|
close(fl);
|
||||||
|
close(fd);
|
||||||
|
free(fname);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
|
Loading…
Reference in New Issue