From 2a2953b35505fb7f603b490c72edd76bd6469540 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 14 Jul 2015 21:14:45 +0200 Subject: basic: util - fix memleak on error in unbase64mem() --- src/basic/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/util.c b/src/basic/util.c index bc917ae574..a45f5f8e53 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -1030,9 +1030,9 @@ char *base64mem(const void *p, size_t l) { } int unbase64mem(const char *p, size_t l, void **mem, size_t *_len) { - _cleanup_free_ uint8_t *t = NULL; + _cleanup_free_ uint8_t *r = NULL; int a, b, c, d; - uint8_t *r, *z; + uint8_t *z; const char *x; size_t len; -- cgit v1.2.3-54-g00ecf