mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-27 01:20:00 +07:00
nspawn: fix memleak introduced with automatic cleanup
6b2d0e8
introduced a memleak instead of fixing one.
Fix both.
This commit is contained in:
parent
25ea79fe07
commit
89154bd4ac
@ -284,9 +284,9 @@ static int mount_all(const char *dest) {
|
||||
|
||||
unsigned k;
|
||||
int r = 0;
|
||||
char _cleanup_free_ *where = NULL;
|
||||
|
||||
for (k = 0; k < ELEMENTSOF(mount_table); k++) {
|
||||
char _cleanup_free_ *where = NULL;
|
||||
int t;
|
||||
|
||||
if (asprintf(&where, "%s/%s", dest, mount_table[k].where) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user