diff options
author | Daniel Mack <github@zonque.org> | 2015-07-14 16:10:11 -0400 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-07-14 16:10:11 -0400 |
commit | 8a2abb30b8a4ef97eb69ecdabd31da996abc3df0 (patch) | |
tree | 2c1ab0693008f486e89e60f7a1471a9af8702d75 /src/basic/util.c | |
parent | dad8f7f2b6eb34bead17df9b3966da9c4b4d79db (diff) | |
parent | 2a2953b35505fb7f603b490c72edd76bd6469540 (diff) |
Merge pull request #587 from teg/unbase64mem-memleak
basic: util - fix memleak on error in unbase64mem()
Diffstat (limited to 'src/basic/util.c')
-rw-r--r-- | src/basic/util.c | 4 |
1 files 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; |