Lines Matching refs:n_bytes

10 gpointer g_malloc(gsize n_bytes);
11 gpointer g_malloc0(gsize n_bytes);
12 gpointer g_realloc(gpointer mem, gsize n_bytes);
13 gpointer g_try_malloc(gsize n_bytes);
14 gpointer g_try_malloc0(gsize n_bytes);
15 gpointer g_try_realloc(gpointer mem, gsize n_bytes);
26 static const gsize n_bytes = 1024; variable
29 gpointer g1 = g_malloc(n_bytes); in f1()
30 gpointer g2 = g_malloc0(n_bytes); in f1()
31 g1 = g_realloc(g1, n_bytes * 2); in f1()
32 gpointer g3 = g_try_malloc(n_bytes); in f1()
33 gpointer g4 = g_try_malloc0(n_bytes); in f1()
34 g3 = g_try_realloc(g3, n_bytes * 2); in f1()
35 gpointer g5 = g_malloc_n(n_bytes, sizeof(char)); in f1()
36 gpointer g6 = g_malloc0_n(n_bytes, sizeof(char)); in f1()
37 g5 = g_realloc_n(g5, n_bytes * 2, sizeof(char)); in f1()
38 gpointer g7 = g_try_malloc_n(n_bytes, sizeof(char)); in f1()
39 gpointer g8 = g_try_malloc0_n(n_bytes, sizeof(char)); in f1()
40 g7 = g_try_realloc_n(g7, n_bytes * 2, sizeof(char)); in f1()
48 gpointer g1 = g_malloc(n_bytes); in f2()
49 gpointer g2 = g_malloc0(n_bytes); in f2()
50 g1 = g_realloc(g1, n_bytes * 2); in f2()
51 gpointer g3 = g_try_malloc(n_bytes); in f2()
52 gpointer g4 = g_try_malloc0(n_bytes); in f2()
53 g3 = g_try_realloc(g3, n_bytes * 2); in f2()
54 gpointer g5 = g_malloc_n(n_bytes, sizeof(char)); in f2()
55 gpointer g6 = g_malloc0_n(n_bytes, sizeof(char)); in f2()
56 g5 = g_realloc_n(g5, n_bytes * 2, sizeof(char)); in f2()
57 gpointer g7 = g_try_malloc_n(n_bytes, sizeof(char)); in f2()
58 gpointer g8 = g_try_malloc0_n(n_bytes, sizeof(char)); in f2()
59 g7 = g_try_realloc_n(g7, n_bytes * 2, sizeof(char)); in f2()
64 g3 = g_memdup(g3, n_bytes); // expected-warning{{Use of memory after it is freed}} in f2()
68 gpointer g1 = g_malloc(n_bytes); in f3()
69 gpointer g2 = g_malloc0(n_bytes); in f3()
70 g1 = g_realloc(g1, n_bytes * 2); in f3()
71 gpointer g3 = g_try_malloc(n_bytes); in f3()
72 gpointer g4 = g_try_malloc0(n_bytes); in f3()
73 …g3 = g_try_realloc(g3, n_bytes * 2); // expected-warning{{Potential leak of memory pointed to by '… in f3()
74 gpointer g5 = g_malloc_n(n_bytes, sizeof(char)); in f3()
75 gpointer g6 = g_malloc0_n(n_bytes, sizeof(char)); in f3()
76 …g5 = g_realloc_n(g5, n_bytes * 2, sizeof(char)); // expected-warning{{Potential leak of memory poi… in f3()
77 …gpointer g7 = g_try_malloc_n(n_bytes, sizeof(char)); // expected-warning{{Potential leak of memory… in f3()
78 gpointer g8 = g_try_malloc0_n(n_bytes, sizeof(char)); in f3()
79 …g7 = g_try_realloc_n(g7, n_bytes * 2, sizeof(char)); // expected-warning{{Potential leak of memory… in f3()
87 gpointer g1 = g_malloc(n_bytes); in f4()
88 gpointer g2 = g_malloc0(n_bytes); in f4()
89 g1 = g_realloc(g1, n_bytes * 2); in f4()
90 gpointer g3 = g_try_malloc(n_bytes); in f4()
91 gpointer g4 = g_try_malloc0(n_bytes); in f4()
92 g3 = g_try_realloc(g3, n_bytes * 2); in f4()
93 gpointer g5 = g_malloc_n(n_bytes, sizeof(char)); in f4()
94 gpointer g6 = g_malloc0_n(n_bytes, sizeof(char)); in f4()
95 …g5 = g_realloc_n(g5, n_bytes * 2, sizeof(char)); // expected-warning{{Potential leak of memory poi… in f4()
96 …gpointer g7 = g_try_malloc_n(n_bytes, sizeof(char)); // expected-warning{{Potential leak of memory… in f4()
97 gpointer g8 = g_try_malloc0_n(n_bytes, sizeof(char)); in f4()
98 …g7 = g_try_realloc_n(g7, n_bytes * 2, sizeof(char)); // expected-warning{{Potential leak of memory… in f4()
107 gpointer g1 = g_malloc(n_bytes); in f5()
108 gpointer g2 = g_malloc0(n_bytes); in f5()
109 g1 = g_realloc(g1, n_bytes * 2); in f5()
110 gpointer g3 = g_try_malloc(n_bytes); in f5()
111 gpointer g4 = g_try_malloc0(n_bytes); in f5()
112 g3 = g_try_realloc(g3, n_bytes * 2); in f5()
113 gpointer g5 = g_malloc_n(n_bytes, sizeof(char)); in f5()
114 gpointer g6 = g_malloc0_n(n_bytes, sizeof(char)); in f5()
115 …g5 = g_realloc_n(g5, n_bytes * 2, sizeof(char)); // expected-warning{{Potential leak of memory poi… in f5()
116 gpointer g7 = g_try_malloc_n(n_bytes, sizeof(char)); in f5()
117 gpointer g8 = g_try_malloc0_n(n_bytes, sizeof(char)); in f5()
118 …g7 = g_try_realloc_n(g7, n_bytes * 2, sizeof(char)); // expected-warning{{Potential leak of memory… in f5()
128 gpointer g1 = g_malloc(n_bytes); in f6()
129 gpointer g2 = g_malloc0(n_bytes); in f6()
130 g1 = g_realloc(g1, n_bytes * 2); in f6()
131 gpointer g3 = g_try_malloc(n_bytes); in f6()
132 gpointer g4 = g_try_malloc0(n_bytes); in f6()
133 g3 = g_try_realloc(g3, n_bytes * 2); in f6()
134 gpointer g5 = g_malloc_n(n_bytes, sizeof(char)); in f6()
135 gpointer g6 = g_malloc0_n(n_bytes, sizeof(char)); in f6()
136 g5 = g_realloc_n(g5, n_bytes * 2, sizeof(char)); in f6()
137 gpointer g7 = g_try_malloc_n(n_bytes, sizeof(char)); in f6()
138 gpointer g8 = g_try_malloc0_n(n_bytes, sizeof(char)); in f6()
139 …g7 = g_try_realloc_n(g7, n_bytes * 2, sizeof(char)); // expected-warning{{Potential leak of memory… in f6()
150 gpointer g1 = g_malloc(n_bytes); in f7()
151 gpointer g2 = g_malloc0(n_bytes); in f7()
152 g1 = g_realloc(g1, n_bytes * 2); in f7()
153 gpointer g3 = g_try_malloc(n_bytes); in f7()
154 gpointer g4 = g_try_malloc0(n_bytes); in f7()
155 g3 = g_try_realloc(g3, n_bytes * 2); in f7()
156 gpointer g5 = g_malloc_n(n_bytes, sizeof(char)); in f7()
157 gpointer g6 = g_malloc0_n(n_bytes, sizeof(char)); in f7()
158 g5 = g_realloc_n(g5, n_bytes * 2, sizeof(char)); in f7()
159 gpointer g7 = g_try_malloc_n(n_bytes, sizeof(char)); in f7()
160 gpointer g8 = g_try_malloc0_n(n_bytes, sizeof(char)); in f7()
161 …g7 = g_try_realloc_n(g7, n_bytes * 2, sizeof(char)); // expected-warning{{Potential leak of memory… in f7()