summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2015-02-05 23:48:17 +0000
committerRoss Lagerwall <rosslagerwall@gmail.com>2015-02-10 19:50:10 +0000
commitaaa86631787bb010af12e62ffd85877d72813509 (patch)
treecc734e222a01c509dc1d817448bc25d953cc7e64 /daemon
parent9a2be56c622fb8130a453bda116dbe15b5ee777f (diff)
downloadgvfs-aaa86631787bb010af12e62ffd85877d72813509.tar.gz
smb: Fix a memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=744078
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gvfsbackendsmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index ea5024c4..5e75a731 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -816,7 +816,6 @@ do_open_for_read (GVfsBackend *backend,
smbc_stat = smbc_getFunctionStat (op_backend->smb_context);
res = smbc_stat (op_backend->smb_context, uri, &st);
- g_free (uri);
if ((res == 0) && (S_ISDIR (st.st_mode)))
g_vfs_job_failed (G_VFS_JOB (job),
G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY,
@@ -831,6 +830,7 @@ do_open_for_read (GVfsBackend *backend,
g_vfs_job_open_for_read_set_handle (job, file);
g_vfs_job_succeeded (G_VFS_JOB (job));
}
+ g_free (uri);
}
static void