mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r16587: Fix Klocwork #1987. Memleak on reusing x_dbf.
Jeremy.
(This used to be commit 16b0617cb0
)
This commit is contained in:
parent
f18df87fe9
commit
67af7a8c43
@ -3464,6 +3464,9 @@ static int do_message_op(void)
|
||||
}
|
||||
break;
|
||||
case 'E':
|
||||
if (dbf) {
|
||||
x_fclose(dbf);
|
||||
}
|
||||
dbf = x_stderr;
|
||||
display_set_stderr();
|
||||
break;
|
||||
|
@ -3605,6 +3605,9 @@ static int do_message_op(void)
|
||||
}
|
||||
break;
|
||||
case 'E':
|
||||
if (dbf) {
|
||||
x_fclose(dbf);
|
||||
}
|
||||
dbf = x_stderr;
|
||||
display_set_stderr();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user