mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-25 06:03:40 +03:00
coredump: fix one memleak in backtrace mode
Journal importer internal structures need to be freed.
This commit is contained in:
parent
274fa94132
commit
57ae8f9936
@ -1270,7 +1270,7 @@ static int process_backtrace(int argc, char *argv[]) {
|
|||||||
_cleanup_free_ struct iovec *iovec = NULL;
|
_cleanup_free_ struct iovec *iovec = NULL;
|
||||||
size_t n_iovec, n_allocated, n_to_free = 0, i;
|
size_t n_iovec, n_allocated, n_to_free = 0, i;
|
||||||
int r;
|
int r;
|
||||||
JournalImporter importer = {
|
_cleanup_(journal_importer_cleanup) JournalImporter importer = {
|
||||||
.fd = STDIN_FILENO,
|
.fd = STDIN_FILENO,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user