1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

coredump: fix one memleak in backtrace mode

Journal importer internal structures need to be freed.
This commit is contained in:
Franck Bui 2019-06-26 07:23:10 +02:00
parent 274fa94132
commit 57ae8f9936

View File

@ -1270,7 +1270,7 @@ static int process_backtrace(int argc, char *argv[]) {
_cleanup_free_ struct iovec *iovec = NULL;
size_t n_iovec, n_allocated, n_to_free = 0, i;
int r;
JournalImporter importer = {
_cleanup_(journal_importer_cleanup) JournalImporter importer = {
.fd = STDIN_FILENO,
};