Fixed resource leak.

This commit is contained in:
Armin Novak 2015-09-01 11:31:12 +02:00
parent 2d5e249eff
commit cb7927756d
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ wPcap* Pcap_Open(char* name, BOOL write)
pcap = (wPcap*) calloc(1, sizeof(wPcap));
if (!pcap)
return NULL;
goto out_fail;
pcap->name = name;
pcap->write = write;