1
0
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:
Jeremy Allison 2006-06-28 01:11:17 +00:00 committed by Gerald (Jerry) Carter
parent f18df87fe9
commit 67af7a8c43
2 changed files with 6 additions and 0 deletions

View File

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

View File

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