1
2 #include <glib.h>
3 #include <stdlib.h>
4
5 struct x {
6 int j;
7 int k[30];
8 };
9
10
11 int main(int argc, char **argv)
12 {
13 struct x *x1 = g_new0(struct x, 1);
14 struct x *x2 = g_new0(struct x, 1);
15 struct x *x3 = g_new0(struct x, 1);
16 struct x *x4[300] = {};
17 int i;
18
19 for (i=0; i<300; i++) {
20 x4[i] = g_new0(struct x, 1);
21 }
22
23 for (i=0; i<300; i++) {
24 free(x4[i]);
25 }
26
27 g_free(x1);
28 g_free(x2);
29 g_free(x3);
30 return 0;
31 }
32
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.