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.
This commit is contained in:
Bastien Nocera
2012-02-07 21:43:28 +00:00
parent cde767cbc9
commit 4c120e487b

View File

@ -205,7 +205,6 @@ static DBusGProxy *open_device(pam_handle_t *pamh, DBusGConnection *connection,
dev = NULL;
}
g_strfreev ((char **)paths_array->pdata);
g_ptr_array_free (paths_array, TRUE);
return dev;