mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed free() in UdpLayer::recv_loop
This commit is contained in:
parent
58672e83a6
commit
22c00fc638
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user