Lines Matching refs:NULL
129 (p)->next = (p)->prev = NULL; \
133 (p)->prev = NULL; \
143 if (list) (list)->prev = NULL; \
148 if ((p) && ((p) != (list))) (p)->next = (p)->prev = NULL; \
165 return tc? TC_PTR_FROM_CHUNK(tc) : NULL; in talloc_parent()
175 if (context == NULL) { in _talloc()
180 return NULL; in _talloc()
184 if (tc == NULL) return NULL; in _talloc()
188 tc->destructor = NULL; in _talloc()
189 tc->child = NULL; in _talloc()
190 tc->name = NULL; in _talloc()
191 tc->refs = NULL; in _talloc()
200 parent->child->parent = NULL; in _talloc()
205 tc->next = tc->prev = tc->parent = NULL; in _talloc()
230 if (ptr == NULL) return; in talloc_increase_ref_count()
245 tc1->destructor = NULL; in talloc_reference_destructor()
265 if (ptr == NULL) return NULL; in talloc_reference()
270 if (handle == NULL) return NULL; in talloc_reference()
291 if (context == NULL) { in talloc_unreference()
302 if (p == NULL) { in talloc_unreference()
303 if (context == NULL) break; in talloc_unreference()
308 if (h == NULL) { in talloc_unreference()
312 talloc_set_destructor(h, NULL); in talloc_unreference()
327 if (ptr == NULL) { in talloc_unlink()
331 if (context == NULL) { in talloc_unlink()
339 if (context == NULL) { in talloc_unlink()
340 if (talloc_parent_chunk(ptr) != NULL) { in talloc_unlink()
351 if (tc_p->refs == NULL) { in talloc_unlink()
359 new_parent = NULL; in talloc_unlink()
417 if (ptr == NULL) return NULL; in talloc_named()
436 if (ptr == NULL) { in talloc_named_const()
437 return NULL; in talloc_named_const()
468 if (ptr == NULL) return NULL; in talloc_check_name()
473 return NULL; in talloc_check_name()
487 ptr = _talloc(NULL, 0); in talloc_init()
488 if (ptr == NULL) return NULL; in talloc_init()
506 if (ptr == NULL) { in talloc_free_children()
546 if (ptr == NULL) { in talloc_free()
577 tc->destructor = NULL; in talloc_free()
614 return NULL; in _talloc_realloc()
618 return NULL; in _talloc_realloc()
622 if (ptr == NULL) { in _talloc_realloc()
630 return NULL; in _talloc_realloc()
647 return NULL; in _talloc_realloc()
682 return NULL; in talloc_steal()
685 if (new_ctx == NULL) { in talloc_steal()
691 if (new_ctx == NULL) { in talloc_steal()
702 tc->parent = tc->next = tc->prev = NULL; in talloc_steal()
723 if (new_tc->child) new_tc->child->parent = NULL; in talloc_steal()
737 if (ptr == NULL) { in talloc_total_size()
740 if (ptr == NULL) { in talloc_total_size()
838 if (ptr == NULL) { in talloc_report_full()
841 if (ptr == NULL) return; in talloc_report_full()
859 if (ptr == NULL) { in talloc_report()
862 if (ptr == NULL) return; in talloc_report()
905 if (null_context == NULL) { in talloc_enable_null_tracking()
906 null_context = talloc_named_const(NULL, 0, "null_context"); in talloc_enable_null_tracking()
931 sprintf_append(NULL, pps, plen, pbuflen, in talloc_report_depth_str()
937 sprintf_append(NULL, pps, plen, pbuflen, in talloc_report_depth_str()
958 char *s = NULL; in talloc_describe_all()
960 if (null_context == NULL) { in talloc_describe_all()
961 return NULL; in talloc_describe_all()
964 sprintf_append(NULL, &s, &len, &buflen, in talloc_describe_all()
971 return NULL; in talloc_describe_all()
1032 return NULL; in talloc_strdup()
1057 return NULL; in talloc_append_string()
1076 if (!ret) { return NULL; } in talloc_strndup()
1105 return NULL; in talloc_vasprintf()
1151 if (s == NULL) { in talloc_vasprintf_append()
1152 return talloc_vasprintf(NULL, fmt, ap); in talloc_vasprintf_append()
1160 if ((len = vsnprintf(NULL, 0, fmt, ap2)) <= 0) { in talloc_vasprintf_append()
1172 s = talloc_realloc(NULL, s, char, s_len + len+1); in talloc_vasprintf_append()
1173 if (!s) return NULL; in talloc_vasprintf_append()
1205 return NULL; in _talloc_array()
1216 return NULL; in _talloc_zero_array()
1228 return NULL; in _talloc_realloc_array()
1240 return _talloc_realloc(context, ptr, size, NULL); in talloc_realloc_fn()
1247 cleanup_context = NULL; in talloc_autofree()
1256 if (cleanup_context == NULL) { in talloc_autofree_context()
1257 cleanup_context = talloc_named_const(NULL, 0, "autofree_context"); in talloc_autofree_context()
1267 if (context == NULL) in talloc_get_size()
1282 if (context == NULL) { in talloc_find_parent_byname()
1283 return NULL; in talloc_find_parent_byname()
1294 return NULL; in talloc_find_parent_byname()
1304 if (context == NULL) { in talloc_show_parents()