summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-28 22:09:28 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-28 22:27:15 -0400
commit5e75606a419059e6fbd8705b0b60c183c8aca246 (patch)
treedc0ad8f35803234e5c30421394b0bb1eb75d9d96
parent9ca3c17f207121b3c19a44217558b056a7585944 (diff)
coredump: do not free twicesystemd/v200
-rw-r--r--src/journal/coredump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c
index bada8487c4..c56d283268 100644
--- a/src/journal/coredump.c
+++ b/src/journal/coredump.c
@@ -95,15 +95,15 @@ static int divert_coredump(void) {
int main(int argc, char* argv[]) {
int r, j = 0;
- _cleanup_free_ char *p = NULL;
+ char *t;
ssize_t n;
pid_t pid;
uid_t uid;
gid_t gid;
struct iovec iovec[14];
- _cleanup_free_ char *core_pid = NULL, *core_uid = NULL, *core_gid = NULL, *core_signal = NULL,
+ char _cleanup_free_ *core_pid = NULL, *core_uid = NULL, *core_gid = NULL, *core_signal = NULL,
*core_timestamp = NULL, *core_comm = NULL, *core_exe = NULL, *core_unit = NULL,
- *core_session = NULL, *core_message = NULL, *core_cmdline = NULL, *t = NULL;
+ *core_session = NULL, *core_message = NULL, *core_cmdline = NULL, *p = NULL;
prctl(PR_SET_DUMPABLE, 0);