diff options
author | Antonin Décimo <antonin.decimo@gmail.com> | 2019-08-09 15:31:33 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-12 09:37:21 +0900 |
commit | 3fc977d7dad2822c15a0d4171bb3c237d62e1e0d (patch) | |
tree | cf1c01c4d602113bc9c6e9eaf83c625480713264 | |
parent | 820800a5aba9172c8639e97b4de0503b35eb9aa2 (diff) |
Fix memory leak
-rw-r--r-- | types/wlr_data_control_v1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_data_control_v1.c b/types/wlr_data_control_v1.c index d21a6ba1..4b1c87fc 100644 --- a/types/wlr_data_control_v1.c +++ b/types/wlr_data_control_v1.c @@ -300,6 +300,7 @@ static struct wl_resource *create_offer(struct wlr_data_control_device_v1 *devic struct wl_resource *resource = wl_resource_create(client, &zwlr_data_control_offer_v1_interface, version, 0); if (resource == NULL) { + free(offer); return NULL; } |