• Allison Karlitskaya's avatar
    GDBusMessage: fix leak of GError · 9c07e7dc
    Allison Karlitskaya authored
    As part of the deserialisation process of a zero-length array in the
    DBus wire format, parse_value_from_blob() recursively calls itself with
    the expectation of failing (as can be seen by the assert immediately
    It passes &local_error to this always-failing call and then fails to
    free it (indeed, to use it at all).  The result is that the GError is
    Fix it by passing in NULL instead, so that the GError is never created
    in the first place.
gdbusmessage.c 98.6 KB