From 732c919cf04c0aaf1b092238e8b84cdb7adf657a Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 18 Mar 2019 17:12:25 +0100 Subject: libqos: split I2CAdapter initialization and allocation Provide *_init functions that populate an I2CAdapter struct without allocating one, and make the existing *_create functions wrap them. Because in the new setup *_create might return a pointer inside the IMXI2C or OMAPI2C struct, create companion *_free functions to go back to the outer pointer. All this is temporary until allocation will be handled entirely by qgraph. Signed-off-by: Paolo Bonzini --- tests/tmp105-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/tmp105-test.c') diff --git a/tests/tmp105-test.c b/tests/tmp105-test.c index c86d2571e2..25ea05f5fd 100644 --- a/tests/tmp105-test.c +++ b/tests/tmp105-test.c @@ -122,7 +122,7 @@ int main(int argc, char **argv) ret = g_test_run(); qtest_quit(s); - g_free(i2c); + omap_i2c_free(i2c); return ret; } -- cgit 1.4.1