Commit f540ae5d authored by Daniel Drake's avatar Daniel Drake

Fix memory leak in fpi_print_data_new()

Pointed out by Krystian (yoB) on FS#24
parent ebcabc1a
......@@ -107,8 +107,6 @@ static struct fp_print_data *print_data_new(uint16_t driver_id,
struct fp_print_data *fpi_print_data_new(struct fp_dev *dev, size_t length)
struct fp_print_data *data = g_malloc(sizeof(*data) + length);
memset(data, 0, sizeof(*data));
return print_data_new(dev->drv->id, dev->devtype,
fpi_driver_get_data_type(dev->drv), length);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment