/freebsd/usr.bin/rctl/ |
H A D | rctl.c | 114 char *copy, *expanded, *tofree; in expand_amount() local 117 tofree = copy = strdup(rule); in expand_amount() 134 free(tofree); in expand_amount() 151 free(tofree); in expand_amount() 165 free(tofree); in expand_amount() 169 free(tofree); in expand_amount() 179 char *copy, *expanded, *resolved, *tofree; in expand_rule() local 182 tofree = copy = strdup(rule); in expand_rule() 216 free(tofree); in expand_rule() 224 free(tofree); in expand_rule() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | freeaddrinfo.c | 45 struct addrinfo *tofree; in freeaddrinfo() local 50 tofree = ai; in freeaddrinfo() 52 free (tofree); in freeaddrinfo()
|
/freebsd/sbin/nvmecontrol/ |
H A D | connect.c | 197 char *tofree; in connect_fn() local 212 nvmf_parse_address(opt.address, &address, &port, &tofree); in connect_fn() 223 free(tofree); in connect_fn() 231 char *tofree; in connect_all_fn() local 244 nvmf_parse_address(opt.address, &address, &port, &tofree); in connect_all_fn() 247 free(tofree); in connect_all_fn()
|
H A D | fabrics.c | 62 const char **port, char **tofree) in nvmf_parse_address() argument 82 *tofree = strndup(in_address + 1, cp - (in_address + 1)); in nvmf_parse_address() 83 *address = *tofree; in nvmf_parse_address() 107 *tofree = NULL; in nvmf_parse_address() 115 *tofree = NULL; in nvmf_parse_address() 123 *tofree = strndup(in_address, cp - in_address); in nvmf_parse_address() 124 *address = *tofree; in nvmf_parse_address()
|
H A D | reconnect.c | 108 char *subnqn, *tofree; in reconnect_by_address() local 122 nvmf_parse_address(addr, &address, &port, &tofree); in reconnect_by_address() 124 free(tofree); in reconnect_by_address() 142 free(tofree); in reconnect_by_address()
|
H A D | fabrics.h | 17 const char **port, char **tofree);
|
/freebsd/sys/contrib/openzfs/etc/systemd/system-generators/ |
H A D | zfs-mount-generator.c | 201 void **tofree = tofree_all; in line_worker() local 230 const char *pool = *(tofree++) = strndup(dataset, pool_len); in line_worker() 273 char *keyloadunit = *(tofree++) = in line_worker() 391 after = *(tofree++) = toktmp; in line_worker() 576 *(tofree++) = (void *)mountfile; in line_worker() 613 *(--tofree) = NULL; in line_worker() 683 *(tofree++) = linktgt; in line_worker() 735 if (tofree >= tofree_all + nitems(tofree_all)) { in line_worker() 742 getpid(), dataset, tofree - tofree_all, nitems(tofree_all)); in line_worker() 743 ret = tofree - tofree_all; in line_worker() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/os/freebsd/ |
H A D | libzfs_zmount.c | 77 char *optstr, *p, *tofree; in do_mount() local 85 tofree = optstr = strdup(opts); in do_mount() 102 free(tofree); in do_mount()
|
/freebsd/usr.sbin/bhyve/ |
H A D | config.c | 51 char *copy, *name, *tofree; in _lookup_config_node() local 57 tofree = copy; in _lookup_config_node() 78 for (copy = tofree; copy < name; copy++) in _lookup_config_node() 83 path, tofree); in _lookup_config_node() 101 free(tofree); in _lookup_config_node()
|
H A D | pci_virtio_9p.c | 223 char *sharename = NULL, *tofree, *token, *tokens; in pci_vt9p_legacy_config() local 228 tokens = tofree = strdup(opts); in pci_vt9p_legacy_config() 243 free(tofree); in pci_vt9p_legacy_config()
|
H A D | bhyverun.c | 132 char *cp, *str, *tofree; in bhyve_topology_parse() local 142 tofree = str = strdup(opt); in bhyve_topology_parse() 160 free(tofree); in bhyve_topology_parse() 164 free(tofree); in bhyve_topology_parse()
|
H A D | net_backend_slirp.c | 537 char *rules, *tofree; in _slirp_init() local 540 tofree = rules = strdup(hostfwd); in _slirp_init() 546 free(tofree); in _slirp_init() 550 free(tofree); in _slirp_init()
|
H A D | pci_virtio_console.c | 672 char *opt, *str, *tofree; in pci_vtcon_legacy_config() local 677 tofree = str = strdup(opts); in pci_vtcon_legacy_config() 686 free(tofree); in pci_vtcon_legacy_config()
|
H A D | pci_passthru.c | 747 char *tofree; in passthru_legacy_config() local 757 tofree = strndup(opts, cp - opts); in passthru_legacy_config() 758 set_config_value_node(nvl, "pptdev", tofree); in passthru_legacy_config() 759 free(tofree); in passthru_legacy_config()
|
/freebsd/usr.sbin/ctld/ |
H A D | login.c | 252 char *tofree, *str, *token; in login_list_contains() local 254 tofree = str = checked_strdup(list); in login_list_contains() 258 free(tofree); in login_list_contains() 262 free(tofree); in login_list_contains() 270 char *tofree, *str, *token; in login_list_prefers() local 272 tofree = str = checked_strdup(list); in login_list_prefers() 276 free(tofree); in login_list_prefers() 280 free(tofree); in login_list_prefers() 284 free(tofree); in login_list_prefers()
|
/freebsd/usr.sbin/iscsid/ |
H A D | login.c | 310 char *tofree, *str, *token; in login_list_prefers() local 312 tofree = str = checked_strdup(list); in login_list_prefers() 316 free(tofree); in login_list_prefers() 320 free(tofree); in login_list_prefers() 324 free(tofree); in login_list_prefers()
|
H A D | iscsid.c | 152 char *arg, *addr, *ch, *tofree; in resolve_addr() local 156 tofree = arg = checked_strdup(address); in resolve_addr() 218 free(tofree); in resolve_addr()
|
/freebsd/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 549 char *dupacts, *tofree; in timeout_act_str2int() local 553 tofree = dupacts = strdup(acts); in timeout_act_str2int() 554 if (!tofree) in timeout_act_str2int() 566 free(tofree); in timeout_act_str2int()
|
/freebsd/sys/powerpc/aim/ |
H A D | mmu_oea64.c | 365 struct pvo_dlist *tofree); 2698 struct pvo_dlist tofree; in moea64_remove_pages() local 2700 SLIST_INIT(&tofree); in moea64_remove_pages() 2713 SLIST_INSERT_HEAD(&tofree, pvo, pvo_dlink); in moea64_remove_pages() 2717 while (!SLIST_EMPTY(&tofree)) { in moea64_remove_pages() 2718 pvo = SLIST_FIRST(&tofree); in moea64_remove_pages() 2719 SLIST_REMOVE_HEAD(&tofree, pvo_dlink); in moea64_remove_pages() 2727 struct pvo_dlist *tofree) in moea64_remove_locked() argument 2738 tpvo = moea64_sp_remove(pvo, tofree); in moea64_remove_locked() 2754 SLIST_INSERT_HEAD(tofree, pvo, pvo_dlink); in moea64_remove_locked() [all …]
|
/freebsd/usr.sbin/autofs/ |
H A D | automountd.c | 92 char *tofree, *pair, *newoptions; in pick_option() local 96 tofree = *optionsp; in pick_option() 117 free(tofree); in pick_option()
|
H A D | common.c | 130 char *component, *copy, *tofree, *partial, *tmp; in create_directory() local 138 copy = tofree = checked_strdup(path + 1); in create_directory() 156 free(tofree); in create_directory()
|
/freebsd/sbin/nvmecontrol/modules/wdc/ |
H A D | wdc.c | 268 uint8_t *hdr, *tofree; in wdc_get_dui_log_size() local 277 tofree = hdr = (uint8_t*)malloc(len); in wdc_get_dui_log_size() 315 free(tofree); in wdc_get_dui_log_size()
|
/freebsd/sbin/geom/core/ |
H A D | geom.c | 534 char *curpath, path[MAXPATHLEN], *tofree, *totalpath; in load_library() local 540 tofree = totalpath = strdup(library_path()); in load_library() 566 free(tofree); in load_library()
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evutil.c | 1818 struct cached_sock_errs_entry **errs, *tofree; in evutil_free_sock_err_globals() local 1822 tofree = *errs; in evutil_free_sock_err_globals() 1826 LocalFree(tofree->msg); in evutil_free_sock_err_globals() 1827 mm_free(tofree); in evutil_free_sock_err_globals()
|
/freebsd/contrib/libevent/ |
H A D | evutil.c | 1818 struct cached_sock_errs_entry **errs, *tofree; in evutil_free_sock_err_globals() local 1822 tofree = *errs; in evutil_free_sock_err_globals() 1826 LocalFree(tofree->msg); in evutil_free_sock_err_globals() 1827 mm_free(tofree); in evutil_free_sock_err_globals()
|