mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05: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