summaryrefslogtreecommitdiffstats
path: root/src/journal-remote/journal-remote-parse.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-14 04:42:14 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-19 17:40:56 +0200
commit2ddb70d26f9a284fbf38bca37ea857f24c3f39de (patch)
treea8f01d230d1d11da29ea008afb3a3c7ff77828b2 /src/journal-remote/journal-remote-parse.c
parentjournald: use unaligned_read instead of memcpy (diff)
downloadsystemd-2ddb70d26f9a284fbf38bca37ea857f24c3f39de.tar.xz
systemd-2ddb70d26f9a284fbf38bca37ea857f24c3f39de.zip
journal-remote: fix memleak of the name of the remote source
Diffstat (limited to 'src/journal-remote/journal-remote-parse.c')
-rw-r--r--src/journal-remote/journal-remote-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote-parse.c b/src/journal-remote/journal-remote-parse.c
index 79afe6604c..d61d1c18f6 100644
--- a/src/journal-remote/journal-remote-parse.c
+++ b/src/journal-remote/journal-remote-parse.c
@@ -41,7 +41,7 @@ void source_free(RemoteSource *source) {
/**
* Initialize zero-filled source with given values. On success, takes
- * ownerhship of fd and writer, otherwise does not touch them.
+ * ownership of fd, name, and writer, otherwise does not touch them.
*/
RemoteSource* source_new(int fd, bool passive_fd, char *name, Writer *writer) {