[PATCH 6/6] Fix a memory leak by freeing a buffer variable
- From: Jonh Wendell <jwendell gnome org>
- Subject: [PATCH 6/6] Fix a memory leak by freeing a buffer variable
- Date: Wed, 28 Oct 2009 20:06:36 -0300
---
src/gvnc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gvnc.c b/src/gvnc.c
index 53be410..c413c91 100644
--- a/src/gvnc.c
+++ b/src/gvnc.c
@@ -3441,6 +3441,8 @@ void gvnc_close(struct gvnc *gvnc)
gvnc->name = NULL;
}
+ g_free (gvnc->xmit_buffer);
+
if (gvnc->cred_username) {
g_free(gvnc->cred_username);
gvnc->cred_username = NULL;
--
1.6.3.3
--=-ZGLsREbMdlUqAwJTGqis--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]