Change a return to a break so the local buffers get properly freeed.
Spotte by: FlexeLint Reviewed by: rwatson
This commit is contained in:
parent
19ebba326b
commit
2f9752e95e
@ -264,7 +264,7 @@ log_console(struct uio *uio)
|
||||
c = imin(uio->uio_resid, CONSCHUNK);
|
||||
error = uiomove(consbuffer, c, uio);
|
||||
if (error != 0)
|
||||
return;
|
||||
break;
|
||||
for (i = 0; i < c; i++) {
|
||||
msglogchar(consbuffer[i], pri);
|
||||
if (consbuffer[i] == '\n')
|
||||
|
Loading…
x
Reference in New Issue
Block a user