Blame SOURCES/0048-fp-print-Set-the-aligned_data-as-the-data-used-by-th.patch
|
|
73b847 |
From 2a335a89a622dcc0428fcd32dbed7841dec5b25f Mon Sep 17 00:00:00 2001
|
|
|
73b847 |
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
|
|
|
73b847 |
Date: Thu, 28 Nov 2019 21:30:17 +0100
|
|
|
73b847 |
Subject: [PATCH 048/181] fp-print: Set the aligned_data as the data used by
|
|
|
73b847 |
the cleanup function
|
|
|
73b847 |
|
|
|
73b847 |
g_variant_new_from_data() allows to destroy some other user_data passed as
|
|
|
73b847 |
parameter that might be different from the aligned_data itself.
|
|
|
73b847 |
|
|
|
73b847 |
But since in this case they match, pass it to be set as g_free parameter
|
|
|
73b847 |
or it won't be free'd.
|
|
|
73b847 |
---
|
|
|
73b847 |
libfprint/fp-print.c | 2 +-
|
|
|
73b847 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
73b847 |
|
|
|
73b847 |
diff --git a/libfprint/fp-print.c b/libfprint/fp-print.c
|
|
|
73b847 |
index 7777db2..ddf8747 100644
|
|
|
73b847 |
--- a/libfprint/fp-print.c
|
|
|
73b847 |
+++ b/libfprint/fp-print.c
|
|
|
73b847 |
@@ -1009,7 +1009,7 @@ fp_print_deserialize (const guchar *data,
|
|
|
73b847 |
memcpy (aligned_data, data + 3, length - 3);
|
|
|
73b847 |
raw_value = g_variant_new_from_data (FP_PRINT_VARIANT_TYPE,
|
|
|
73b847 |
aligned_data, length - 3,
|
|
|
73b847 |
- FALSE, g_free, NULL);
|
|
|
73b847 |
+ FALSE, g_free, aligned_data);
|
|
|
73b847 |
|
|
|
73b847 |
if (!raw_value)
|
|
|
73b847 |
goto invalid_format;
|
|
|
73b847 |
--
|
|
|
73b847 |
2.24.1
|
|
|
73b847 |
|