basic: util - fix memleak on error in unbase64mem()

This commit is contained in:
Tom Gundersen 2015-07-14 21:14:45 +02:00
parent dad8f7f2b6
commit 2a2953b355

View file

@ -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;