Closed mgiannopoulos24 closed 3 months ago
Fixed:
src/cap2hccapx.c:932:5: error: Resource leak: pcap [resourceLeak] return -1; ^ src/cap2hccapx.c:959:5: error: Resource leak: pcap [resourceLeak] return 1; ^ src/cap2hccapx.c:980:5: error: Resource leak: pcap [resourceLeak] return -1; ^
To address this, I added a fclose(pcap); statement before the return 1; line to release the resource.
fclose(pcap);
return 1;
Fixed:
To address this, I added a
fclose(pcap);
statement before thereturn 1;
line to release the resource.