[PATCH 3/6] window: Free allocated memory on error path
Rob Bradford
robert.bradford at intel.com
Thu Jan 10 11:48:54 PST 2013
From: Rob Bradford <rob at linux.intel.com>
---
clients/window.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/clients/window.c b/clients/window.c
index 2baf4d9..0701981 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -4241,6 +4241,7 @@ display_create(int argc, char *argv[])
d->display = wl_display_connect(NULL);
if (d->display == NULL) {
fprintf(stderr, "failed to create display: %m\n");
+ free(d);
return NULL;
}
--
1.7.11.7
More information about the wayland-devel
mailing list