blob: 0fe8582956079f74b31691f3492c72b62f6552a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
--- src/nettool.c.orig 2009-06-18 13:51:14.000000000 -0400
+++ src/nettool.c 2009-07-19 16:05:59.000000000 -0400
@@ -374,6 +375,10 @@ netinfo_io_text_buffer_dialog (GIOChanne
len, NULL);
}
+ g_free (text);
+
+ return TRUE;
+
} else if (status == G_IO_STATUS_AGAIN) {
char buf[1];
@@ -385,6 +390,8 @@ netinfo_io_text_buffer_dialog (GIOChanne
}
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) {
@@ -402,15 +409,15 @@ netinfo_io_text_buffer_dialog (GIOChanne
} 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
|