Commit 4c120e48 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

pam: Fix crash when enumerating the devices

We don't need to free this by hand, it'll get freed when
we free the array itself.
parent cde767cb
...@@ -205,7 +205,6 @@ static DBusGProxy *open_device(pam_handle_t *pamh, DBusGConnection *connection, ...@@ -205,7 +205,6 @@ static DBusGProxy *open_device(pam_handle_t *pamh, DBusGConnection *connection,
dev = NULL; dev = NULL;
} }
g_strfreev ((char **)paths_array->pdata);
g_ptr_array_free (paths_array, TRUE); g_ptr_array_free (paths_array, TRUE);
return dev; return dev;
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