dmesg: fix possible memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-06-10 13:44:25 +02:00
parent 5f0cf2484f
commit bcb6ccf819
1 changed files with 1 additions and 1 deletions

View File

@ -1085,10 +1085,10 @@ full_output:
mesg_size = strlen(line);
goto full_output;
}
free(mesg_copy);
}
done:
free(mesg_copy);
putchar('\n');
}