mirror of https://github.com/FreeRDP/FreeRDP
Fixed resource leak.
This commit is contained in:
parent
2d5e249eff
commit
cb7927756d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue