From e118c111783f89635986fecdd7990ce7dcb1363b Mon Sep 17 00:00:00 2001 From: Marek Chalupa Date: Fri, 21 Nov 2014 11:18:33 +0100 Subject: tests: fix memory leak We didn't free the struct client that we got from client_connect() Signed-off-by: Marek Chalupa Acked-by: Pekka Paalanen --- tests/test-compositor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test-compositor.c') diff --git a/tests/test-compositor.c b/tests/test-compositor.c index 3248e2d..6f86a85 100644 --- a/tests/test-compositor.c +++ b/tests/test-compositor.c @@ -452,6 +452,7 @@ client_disconnect(struct client *c) wl_proxy_destroy((struct wl_proxy *) c->tc); wl_display_disconnect(c->wl_display); + free(c); } /* num is number of clients that requests to stop display. -- cgit v1.2.3-70-g09d2