mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-09 23:34:57 -04:00
Merge pull request #43 from thiell/create_directory_memleak
create_directory: do not redeclare variable buf
This commit is contained in:
commit
abc4719464
2
main.c
2
main.c
@ -1737,7 +1737,7 @@ create_directory (struct ovl_data *lo, int dirfd, const char *name, const struct
|
|||||||
if (ret == 0 && xattr_sfd >= 0)
|
if (ret == 0 && xattr_sfd >= 0)
|
||||||
{
|
{
|
||||||
const size_t buf_size = 1 << 20;
|
const size_t buf_size = 1 << 20;
|
||||||
char *buf = malloc (buf_size);
|
buf = malloc (buf_size);
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
{
|
{
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user