Commit 1c0123ca authored by Simon McVittie's avatar Simon McVittie

activation: Don't leak if delivering activation message is forbidden

This is technically a denial of service because the dbus-daemon will
run out of memory eventually, but it's a very slow and noisy one,
because all the rejected messages are also very likely to have
been logged to the system log.

Detected by AddressSanitizer.
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
Resolves: #234
Reviewed-by: pwithnall
parent a051b95f
......@@ -1206,6 +1206,7 @@ bus_activation_send_pending_auto_activation_messages (BusActivation *activation
entry->activation_message);
}
dbus_error_free (&error);
link = next;
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment