From 64825d3c589cd8742887f30acde8c57eceac2001 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 8 Aug 2012 23:54:21 +0200 Subject: fix a couple of issues found with llvm-analyze --- src/shared/logs-show.c | 1 + src/shared/utf8.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index b6e6a85819..60eb896ade 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -273,6 +273,7 @@ finish: free(message); free(monotonic); free(realtime); + free(priority); return r; } diff --git a/src/shared/utf8.c b/src/shared/utf8.c index a6f5b3f9e5..ea7483f50f 100644 --- a/src/shared/utf8.c +++ b/src/shared/utf8.c @@ -275,7 +275,7 @@ char *ascii_filter(const char *str) { if (!r) return NULL; - for (s = r, d = r; *s; s++) + for (s = str, d = r; *s; s++) if ((unsigned char) *s < 128) *(d++) = *s; -- cgit v1.2.3-54-g00ecf