mirror of
https://github.com/samba-team/samba.git
synced 2025-11-23 20:23:50 +03:00
r9126: Fix valgrind bug Volker found in interaction with new aio buffer
flipping and oplocks. Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e9427912a7
commit
a18c5ff3ea
@@ -1527,6 +1527,7 @@ char *get_InBuffer(void)
|
||||
void set_InBuffer(char *new_inbuf)
|
||||
{
|
||||
InBuffer = new_inbuf;
|
||||
current_inbuf = InBuffer;
|
||||
}
|
||||
|
||||
char *get_OutBuffer(void)
|
||||
@@ -1547,6 +1548,9 @@ void set_OutBuffer(char *new_outbuf)
|
||||
void free_InBuffer(char *inbuf)
|
||||
{
|
||||
if (!aio_inbuffer_in_use(inbuf)) {
|
||||
if (current_inbuf == inbuf) {
|
||||
current_inbuf = NULL;
|
||||
}
|
||||
SAFE_FREE(inbuf);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user