dmesg: fix possible memory leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
5f0cf2484f
commit
bcb6ccf819
|
@ -1085,10 +1085,10 @@ full_output:
|
|||
mesg_size = strlen(line);
|
||||
goto full_output;
|
||||
}
|
||||
free(mesg_copy);
|
||||
}
|
||||
|
||||
done:
|
||||
free(mesg_copy);
|
||||
putchar('\n');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue