mirror of
https://github.com/systemd/systemd.git
synced 2026-07-14 19:40:32 +00:00
Merge pull request #587 from teg/unbase64mem-memleak
basic: util - fix memleak on error in unbase64mem()
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user