libsecret/tool
Niels De Graef a1ceaeed2a secret-tool: Fix memory issues in lock command
There were several issues in `secret_tool_action_lock()`:

- `g_autolist (GList)` isn't a correct type, as the list elements are
  `SecretCollection`s, not `GList`s
- Separately from that, the list didn't take ownership of the elements
  either in all cases
- We were leaking the `locked` and `context` variables

This commits just does away with all the g_auto* usage as it's the only
place in the code we're using it anyway, and just does all the freeing
at the end of the function.

Fixes: 015ea119 ("secret-tool: Add locking capabilities to secret tool")
Fixes: https://gitlab.gnome.org/GNOME/libsecret/-/issues/89
2023-12-12 12:27:12 +01:00
..
meson.build Support GnuTLS as an alternative crypto backend 2023-12-04 16:50:49 +09:00
secret-tool.c secret-tool: Fix memory issues in lock command 2023-12-12 12:27:12 +01:00
test-secret-tool-tpm2.sh Add TPM2 integration to secret file backend 2021-08-12 21:14:26 +05:30
test-secret-tool.sh tool: Fix TAP output of test-secret-tool.sh 2020-01-13 14:30:46 +01:00