mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
localectl: fix memleak, jump to finish before returning
This commit is contained in:
parent
4a207bb2a5
commit
2f7a4867ba
@ -354,7 +354,8 @@ static int list_locales(DBusConnection *bus, char **args, unsigned n) {
|
||||
h->locrectab_offset + h->locrectab_size > st.st_size ||
|
||||
h->sumhash_offset + h->sumhash_size > st.st_size) {
|
||||
log_error("Invalid archive file.");
|
||||
return -EBADMSG;
|
||||
r = -EBADMSG;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
e = (const struct namehashent*) ((const uint8_t*) p + h->namehash_offset);
|
||||
|
Loading…
Reference in New Issue
Block a user