mirror of
https://gitlab.com/Monsterovich/lanemu.git
synced 2024-07-07 06:01:16 +02:00
Fixed possible memory leak in tuntap.c
This commit is contained in:
parent
6967b8f80b
commit
5abeeff54f
|
@ -164,6 +164,7 @@ JFUNC(jint, openTun) {
|
|||
do {
|
||||
if (findTapDevice(deviceId, sizeof(deviceId), deviceName, sizeof(deviceName), skip)) {
|
||||
printf("Could not find a TAP interface\n");
|
||||
free(tapData);
|
||||
return skip == 0 ? 1 : 2; // TODO
|
||||
}
|
||||
printf("deviceID: '%s'\n", deviceId);
|
||||
|
|
Loading…
Reference in a new issue