[hotssh] tab: Don't leak all read data
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hotssh] tab: Don't leak all read data
- Date: Fri, 3 Jan 2014 21:17:24 +0000 (UTC)
commit 5e052568753ab1fce14ab4e90af5e0ebeed8dafa
Author: Colin Walters <walters verbum org>
Date: Fri Jan 3 16:16:42 2014 -0500
tab: Don't leak all read data
valgrind --tool=massif to the rescue.
src/hotssh-tab.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hotssh-tab.c b/src/hotssh-tab.c
index 687fb31..9fcdf14 100644
--- a/src/hotssh-tab.c
+++ b/src/hotssh-tab.c
@@ -220,7 +220,7 @@ on_istream_read_complete (GObject *src,
{
HotSshTab *self = user_data;
HotSshTabPrivate *priv = hotssh_tab_get_instance_private (self);
- GBytes *result = NULL;
+ gs_unref_bytes GBytes *result = NULL;
GError *local_error = NULL;
const guint8 *buf;
gsize len;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]