1
0
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:
Jeremy Allison
2005-08-05 17:10:10 +00:00
committed by Gerald (Jerry) Carter
parent e9427912a7
commit a18c5ff3ea
2 changed files with 11 additions and 5 deletions

View File

@@ -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);
}
}