summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-25 16:36:46 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-25 18:04:03 +0100
commit4a1909bb6655a1ba84b426546acb9a518aa9b679 (patch)
treea12bb042d21a2160dc3587abb7648e31c37fee0f
parent2cc86f094a8c316f7feb0336df3827a3264b116d (diff)
journal-gatewayd: minor cleanup
-rw-r--r--src/journal/journal-gatewayd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journal-gatewayd.c b/src/journal/journal-gatewayd.c
index 35462795c2..63d9744776 100644
--- a/src/journal/journal-gatewayd.c
+++ b/src/journal/journal-gatewayd.c
@@ -328,14 +328,13 @@ static int request_parse_range(
colon2 = strchr(colon + 1, ':');
if (colon2) {
- char *t;
+ char _cleanup_free_ *t;
t = strndup(colon + 1, colon2 - colon - 1);
if (!t)
return -ENOMEM;
r = safe_atoi64(t, &m->n_skip);
- free(t);
if (r < 0)
return r;
}