Searched refs:newIf (Results 1 – 1 of 1) sorted by relevance
440 pcap_if_t *newIf = NULL; in TcCreatePcapIfFromPort() local442 newIf = (pcap_if_t*)malloc(sizeof(*newIf)); in TcCreatePcapIfFromPort()443 if (newIf == NULL) in TcCreatePcapIfFromPort()448 memset(newIf, 0, sizeof(*newIf)); in TcCreatePcapIfFromPort()453 newIf->name = (char*)malloc(strlen(name) + 1); in TcCreatePcapIfFromPort()454 if (newIf->name == NULL) in TcCreatePcapIfFromPort()456 free(newIf); in TcCreatePcapIfFromPort()460 newIf->description = (char*)malloc(strlen(description) + 1); in TcCreatePcapIfFromPort()461 if (newIf->description == NULL) in TcCreatePcapIfFromPort()463 free(newIf->name); in TcCreatePcapIfFromPort()[all …]