mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09: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
|
#ifdef DEBUG_UDP_LAYER
|
||||||
std::cerr << "UdpLayer::recv_loop() stopping thread" << std::endl;
|
std::cerr << "UdpLayer::recv_loop() stopping thread" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
free(inbuf) ;
|
||||||
stop();
|
stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -301,9 +302,6 @@ void UdpLayer::recv_loop()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(inbuf) ;
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user