Searched refs:newIf (Results 1 – 1 of 1) sorted by relevance
510 pcap_if_t *newIf = NULL; in TcCreatePcapIfFromPort() local512 newIf = (pcap_if_t*)malloc(sizeof(*newIf)); in TcCreatePcapIfFromPort()513 if (newIf == NULL) in TcCreatePcapIfFromPort()518 memset(newIf, 0, sizeof(*newIf)); in TcCreatePcapIfFromPort()523 newIf->name = (char*)malloc(strlen(name) + 1); in TcCreatePcapIfFromPort()524 if (newIf->name == NULL) in TcCreatePcapIfFromPort()526 free(newIf); in TcCreatePcapIfFromPort()530 newIf->description = (char*)malloc(strlen(description) + 1); in TcCreatePcapIfFromPort()531 if (newIf->description == NULL) in TcCreatePcapIfFromPort()533 free(newIf->name); in TcCreatePcapIfFromPort()[all …]