summaryrefslogtreecommitdiff
path: root/pkcs11/xdg-store/tests/frob-trust-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'pkcs11/xdg-store/tests/frob-trust-file.c')
-rw-r--r--pkcs11/xdg-store/tests/frob-trust-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkcs11/xdg-store/tests/frob-trust-file.c b/pkcs11/xdg-store/tests/frob-trust-file.c
index 79232c6a..a16b7319 100644
--- a/pkcs11/xdg-store/tests/frob-trust-file.c
+++ b/pkcs11/xdg-store/tests/frob-trust-file.c
@@ -186,14 +186,13 @@ add_trust_purpose_to_file (const gchar *filename, const gchar *purpose)
if (result == NULL)
barf_and_die ("couldn't encode trust file", egg_asn1x_message (asn));
- g_free (data);
egg_asn1x_destroy (asn);
if (!g_file_set_contents (filename, g_bytes_get_data (result, NULL),
g_bytes_get_size (result), &err))
barf_and_die ("couldn't write trust file", egg_error_message (err));
- g_free (result);
+ g_bytes_unref (result);
}
/* --------------------------------------------------------------------------------