diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2015-02-05 23:49:29 +0000 |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2015-02-10 19:50:10 +0000 |
commit | 46b8a4516b2cc66cfa043d187777c223a32d4df3 (patch) | |
tree | a8336fe942fe195f6fc611f4d0aec7c1a7642246 /daemon/gvfschannel.h | |
parent | aaa86631787bb010af12e62ffd85877d72813509 (diff) | |
download | gvfs-46b8a4516b2cc66cfa043d187777c223a32d4df3.tar.gz |
channel: Fix a couple of leaks
Fix leaks when sending a GFileInfo through a channel or sending an
error.
This can be seen by running gvfsd through valgrind and doing
query_info_on_{read,write} or truncating with a negative size.
https://bugzilla.gnome.org/show_bug.cgi?id=744078
Diffstat (limited to 'daemon/gvfschannel.h')
-rw-r--r-- | daemon/gvfschannel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/gvfschannel.h b/daemon/gvfschannel.h index 8c80f59b..1f5a7c30 100644 --- a/daemon/gvfschannel.h +++ b/daemon/gvfschannel.h @@ -82,6 +82,10 @@ void g_vfs_channel_send_reply (GVfsChannel GVfsDaemonSocketProtocolReply *reply, const void *data, gsize data_len); +void g_vfs_channel_send_reply_take (GVfsChannel *channel, + GVfsDaemonSocketProtocolReply *reply, + void *data, + gsize data_len); guint32 g_vfs_channel_get_current_seq_nr (GVfsChannel *channel); GPid g_vfs_channel_get_actual_consumer (GVfsChannel *channel); void g_vfs_channel_force_close (GVfsChannel *channel); |