upekts: Fix memory leak

Don't allocate a new finger print structure,
the fpi_device_get_enroll_data() just below will overwrite it.
This commit is contained in:
Bastien Nocera 2020-04-15 15:51:51 +02:00
parent 5b6f5c9aad
commit 5c5a4f6907

View file

@ -1119,7 +1119,6 @@ e_handle_resp02 (FpDevice *dev, unsigned char *data,
else
{
GVariant *fp_data;
print = fp_print_new (dev);
fpi_device_get_enroll_data (dev, &print);