Lines Matching defs:alloc_mem
44 * alloc_mem - Address of pointer to be set to address of allocated
49 * was sufficient, *alloc_mem is set to NULL. If memory was allocated,
50 * *alloc_mem references it. The caller must free this memory after use.
54 char **alloc_mem)
63 *alloc_mem = NULL;
77 ((*alloc_mem = malloc(cnt + 1)) != NULL)) {
78 (void) snprintf(*alloc_mem, cnt + 1,
80 return (*alloc_mem);
84 *alloc_mem = NULL;
88 dbg_fmt_isec_name(Is_desc *isp, dbg_isec_name_buf_t buf, char **alloc_mem)
91 alloc_mem));
164 char *alloc_mem;
181 dbg_fmt_isec_name(isp, buf, &alloc_mem), str,
184 if (alloc_mem != NULL)
185 free(alloc_mem);
221 char *alloc_mem;
224 dbg_fmt_isec_name(isp, buf, &alloc_mem),
226 if (alloc_mem != NULL)
227 free(alloc_mem);
264 char *alloc_mem;
267 dbg_fmt_isec_name(isp, buf, &alloc_mem),
269 if (alloc_mem != NULL)
270 free(alloc_mem);
292 char *alloc_mem;
303 isp_str = dbg_fmt_isec_name(isp, buf, &alloc_mem);
319 if (alloc_mem != NULL)
320 free(alloc_mem);
361 char *alloc_mem;
387 isp1_str = dbg_fmt_isec_name(isp1, buf, &alloc_mem);
401 if (alloc_mem != NULL)
402 free(alloc_mem);
424 char *alloc_mem;
435 dbg_fmt_isec_name(ifl->ifl_isdesc[ndx], buf, &alloc_mem),
437 if (alloc_mem != NULL)
438 free(alloc_mem);
448 char *alloc_mem;
454 dbg_fmt_isec_name(isp, buf, &alloc_mem), nname);
455 if (alloc_mem != NULL)
456 free(alloc_mem);
463 char *alloc_mem;
476 dbg_print(lml, fmt, dbg_fmt_isec_name(isp, buf, &alloc_mem));
477 if (alloc_mem != NULL)
478 free(alloc_mem);