mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-18 04:48:06 +02:00
desktop-file test: Free result on all code paths
Otherwise, Coverity will diagnose this as a resource leak, because it doesn't understand that our assertions end up guaranteeing that the result is freed if and only if it's non-`NULL`. Coverity CID: 354884
This commit is contained in:
parent
65ea9d1625
commit
44c8b03c34
1 changed files with 1 additions and 1 deletions
|
|
@ -221,8 +221,8 @@ test_content (const Test *test,
|
|||
test_assert_no_error (&error);
|
||||
g_assert_true (ok);
|
||||
g_assert_cmpstr (val, ==, test->value);
|
||||
dbus_free (val);
|
||||
}
|
||||
dbus_free (val);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue