summaryrefslogtreecommitdiffstats
path: root/source/dialogs
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-07-31 23:28:31 +0200
committerDave Davenport <qball@gmpclient.org>2016-07-31 23:28:31 +0200
commit604b4cb6192192a0ce68b1a24a630e9775134fb1 (patch)
tree613d2df08500715408ab16f95e53707f73ffba41 /source/dialogs
parent4ad2c37eeafd04526ac785d0b136dc7483534d28 (diff)
Fix memory leak, re-indent
Diffstat (limited to 'source/dialogs')
-rw-r--r--source/dialogs/ssh.c2
-rw-r--r--source/dialogs/window.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/source/dialogs/ssh.c b/source/dialogs/ssh.c
index 397893dc..f11ba3a1 100644
--- a/source/dialogs/ssh.c
+++ b/source/dialogs/ssh.c
@@ -198,7 +198,7 @@ static char **read_hosts_file ( char ** retv, unsigned int *length )
// Reading one line per time.
while ( getline ( &buffer, &buffer_length, fd ) > 0 ) {
// Evaluate one line.
- unsigned int index = 0, ti = 0;
+ unsigned int index = 0, ti = 0;
char *token = buffer;
// Tokenize it.
diff --git a/source/dialogs/window.c b/source/dialogs/window.c
index bd553fc3..825875ae 100644
--- a/source/dialogs/window.c
+++ b/source/dialogs/window.c
@@ -672,6 +672,7 @@ static gboolean helper_eval_cb ( const GMatchInfo *info, GString *str, gpointer
else if ( match[1] == 'r' ) {
helper_eval_add_str ( str, d->c->role, l, d->pd->role_len );
}
+ g_free ( match );
}
return FALSE;
}