mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
fixed free() in UdpLayer::recv_loop
This commit is contained in:
parent
58672e83a6
commit
22c00fc638
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue