From 7ff667f58d53937f2188836b6baa476c1dad0638 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sun, 11 Mar 2018 13:44:31 +0100 Subject: [PATCH] examples: Fix memory leaked by device discovery https://bugs.freedesktop.org/show_bug.cgi?id=105427 --- examples/img_capture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/img_capture.c b/examples/img_capture.c index 6528031..ba256df 100644 --- a/examples/img_capture.c +++ b/examples/img_capture.c @@ -57,6 +57,7 @@ int main(void) ddev = discover_device(discovered_devs); if (!ddev) { + fp_dscv_devs_free(discovered_devs); fprintf(stderr, "No devices detected.\n"); goto out; }