projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dad8f7f
)
basic: util - fix memleak on error in unbase64mem()
author
Tom Gundersen
<teg@jklm.no>
Tue, 14 Jul 2015 19:14:45 +0000
(21:14 +0200)
committer
Tom Gundersen
<teg@jklm.no>
Tue, 14 Jul 2015 19:14:45 +0000
(21:14 +0200)
src/basic/util.c
patch
|
blob
|
history
diff --git
a/src/basic/util.c
b/src/basic/util.c
index
bc917ae
..
a45f5f8
100644
(file)
--- 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;