diff options
author | Timo Savola <timo.savola@iki.fi> | 2017-10-12 20:51:25 +0300 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-10-15 14:31:56 +0100 |
commit | 2731a001e5bdce7409550e4c1ce78ff1dfb96a88 (patch) | |
tree | f0ce060f0c96ea6c7c61b8e2d0bad2e5371d9c52 /sshfs.c | |
parent | 608e7ab89c7f6c4362f8e9a07133adcd26aa63da (diff) | |
download | sshfs-2731a001e5bdce7409550e4c1ce78ff1dfb96a88.tar sshfs-2731a001e5bdce7409550e4c1ce78ff1dfb96a88.tar.gz sshfs-2731a001e5bdce7409550e4c1ce78ff1dfb96a88.tar.bz2 sshfs-2731a001e5bdce7409550e4c1ce78ff1dfb96a88.zip |
Fix memory leak on opendir error
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2152,7 +2152,8 @@ static int sshfs_opendir(const char *path, struct fuse_file_info *fi) if (!err) { buf_finish(handle); fi->fh = (unsigned long) handle; - } + } else + free(handle); buf_free(&buf); return err; } |