mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 16:50:17 +01:00
Fix leak
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3270 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
4c2f6219a9
commit
7bd325bc42
1 changed files with 5 additions and 2 deletions
|
|
@ -323,8 +323,11 @@ get_product_and_vendor (DBusGConnection *connection,
|
|||
}
|
||||
|
||||
if (parent && tmp_product && tmp_vendor) {
|
||||
*product = g_strdup (tmp_product);
|
||||
*vendor = g_strdup (tmp_vendor);
|
||||
*product = tmp_product;
|
||||
*vendor = tmp_vendor;
|
||||
} else {
|
||||
g_free (tmp_product);
|
||||
g_free (tmp_vendor);
|
||||
}
|
||||
g_object_unref (proxy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue