mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-24 05:30:42 +01:00
libnm/dns: fix memleak in demarshal_dns_configuration
Fixes: a8d6005256
This commit is contained in:
parent
0fce208a8b
commit
fee104621e
1 changed files with 2 additions and 0 deletions
|
|
@ -311,6 +311,8 @@ demarshal_dns_configuration (NMObject *object, GParamSpec *pspec, GVariant *valu
|
|||
(const char * const *) domains,
|
||||
priority,
|
||||
vpn);
|
||||
g_free (domains);
|
||||
g_free (nameservers);
|
||||
if (!entry) {
|
||||
g_warning ("Ignoring invalid DNS entry");
|
||||
g_variant_unref (entry_var);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue