Commit 72716d35 authored by Ray Strode's avatar Ray Strode

display: fix memory leak if AddUserAuthentication called more than once

Noted on downstream bug:
parent 51572ce2
......@@ -225,7 +225,14 @@ gdm_display_real_add_user_authorization (GdmDisplay *display,
gboolean res;
g_return_val_if_fail (GDM_IS_DISPLAY (display), FALSE);
g_return_val_if_fail (display->priv->access_file != NULL, FALSE);
if (display->priv->user_access_file != NULL) {
g_set_error (error,
"user access already assigned");
return FALSE;
g_debug ("GdmDisplay: Adding user authorization for %s", username);
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