diff options
| author | Eli Zaretskii | 2023-08-19 10:28:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-08-19 10:28:47 +0300 |
| commit | b12ce748d1a6bcb84667097012eae4c2d249ba00 (patch) | |
| tree | 16e0d106f1f0d9f7b3a4b3449c08d8f7bb553488 /src | |
| parent | b57a6486480038c99e34b2627dfd23842f6395be (diff) | |
| download | emacs-b12ce748d1a6bcb84667097012eae4c2d249ba00.tar.gz emacs-b12ce748d1a6bcb84667097012eae4c2d249ba00.zip | |
; * src/fileio.c (Fset_file_acl): Don't leak memory.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 9294ea3e7d6..fc9b04678f5 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3617,10 +3617,10 @@ support. */) | |||
| 3617 | fail = (acl_set_file (SSDATA (encoded_absname), ACL_TYPE_ACCESS, | 3617 | fail = (acl_set_file (SSDATA (encoded_absname), ACL_TYPE_ACCESS, |
| 3618 | acl) | 3618 | acl) |
| 3619 | != 0); | 3619 | != 0); |
| 3620 | acl_free (acl); | ||
| 3620 | if (fail && acl_errno_valid (errno)) | 3621 | if (fail && acl_errno_valid (errno)) |
| 3621 | report_file_error ("Setting ACL", absname); | 3622 | report_file_error ("Setting ACL", absname); |
| 3622 | 3623 | ||
| 3623 | acl_free (acl); | ||
| 3624 | return fail ? Qnil : Qt; | 3624 | return fail ? Qnil : Qt; |
| 3625 | } | 3625 | } |
| 3626 | # endif | 3626 | # endif |