43 lines
975 B
Plaintext
43 lines
975 B
Plaintext
$OpenBSD: patch-src_nettool_c,v 1.4 2012/01/03 12:11:53 ajacoutot Exp $
|
|
--- src/nettool.c.orig Tue Jan 3 10:10:16 2012
|
|
+++ src/nettool.c Tue Jan 3 13:10:35 2012
|
|
@@ -379,6 +379,10 @@ netinfo_io_text_buffer_dialog (GIOChannel * channel,
|
|
len, NULL);
|
|
}
|
|
|
|
+ g_free (text);
|
|
+
|
|
+ return TRUE;
|
|
+
|
|
} else if (status == G_IO_STATUS_AGAIN) {
|
|
char buf[1];
|
|
|
|
@@ -390,6 +394,8 @@ netinfo_io_text_buffer_dialog (GIOChannel * channel,
|
|
}
|
|
g_string_append_c (netinfo->command_output, buf[0]);
|
|
}
|
|
+ g_free (text);
|
|
+ return TRUE;
|
|
} else if (status == G_IO_STATUS_EOF) {
|
|
|
|
} else if (status == G_IO_STATUS_ERROR) {
|
|
@@ -407,15 +413,15 @@ netinfo_io_text_buffer_dialog (GIOChannel * channel,
|
|
|
|
} else {
|
|
g_warning ("Error: %s\n", err->message);
|
|
- g_free (text);
|
|
g_free (err);
|
|
}
|
|
|
|
+ g_free (text);
|
|
+ return TRUE;
|
|
+
|
|
}
|
|
|
|
g_free (text);
|
|
-
|
|
- return TRUE;
|
|
}
|
|
|
|
/* The condition is not G_IO_HUP | G_IO_ERR | G_IO_NVAL, so
|