[gvfs] dav: Fix a few memory leaks
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] dav: Fix a few memory leaks
- Date: Tue, 10 Feb 2015 19:53:39 +0000 (UTC)
commit 07fc7a65258bce9c3ad950f9adc0e6c66e2b0835
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Sat Feb 7 00:12:36 2015 +0000
dav: Fix a few memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=744078
daemon/gvfsbackenddav.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c
index 1cde3b2..88ea6e3 100644
--- a/daemon/gvfsbackenddav.c
+++ b/daemon/gvfsbackenddav.c
@@ -1387,10 +1387,12 @@ stat_location (GVfsBackend *backend,
http_error_code_from_status (status),
msg->reason_phrase);
+ g_object_unref (msg);
return FALSE;
}
res = stat_location_finish (msg, target_type, num_children);
+ g_object_unref (msg);
if (res == FALSE)
g_set_error_literal (error,
@@ -2620,6 +2622,7 @@ do_delete (GVfsBackend *backend,
{
g_vfs_job_failed_from_error (G_VFS_JOB (job), error);
g_error_free (error);
+ soup_uri_free (uri);
return;
}
@@ -2628,6 +2631,7 @@ do_delete (GVfsBackend *backend,
g_vfs_job_failed (G_VFS_JOB (job),
G_IO_ERROR, G_IO_ERROR_NOT_EMPTY,
_("Directory not empty"));
+ soup_uri_free (uri);
return;
}
@@ -2832,9 +2836,8 @@ do_move (GVfsBackend *backend,
else
http_job_failed (G_VFS_JOB (job), msg);
- g_object_unref (msg);
-
error:
+ g_object_unref (msg);
g_clear_error (&error);
soup_uri_free (source_uri);
soup_uri_free (target_uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]