fixed free() in UdpLayer::recv_loop

This commit is contained in:
electron128 2016-01-01 14:07:15 +01:00
parent 58672e83a6
commit 22c00fc638

View File

@ -262,6 +262,7 @@ void UdpLayer::recv_loop()
#ifdef DEBUG_UDP_LAYER
std::cerr << "UdpLayer::recv_loop() stopping thread" << std::endl;
#endif
free(inbuf) ;
stop();
}
@ -301,9 +302,6 @@ void UdpLayer::recv_loop()
#endif
}
}
free(inbuf) ;
return;
}