]> git.sur5r.net Git - i3/i3lock/commitdiff
i3lock: Stop leaking the image_path dup. (#93)
authorDiogo Ferreira <diogo@underdev.org>
Tue, 13 Sep 2016 19:59:54 +0000 (20:59 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 13 Sep 2016 19:59:54 +0000 (21:59 +0200)
i3lock.c

index 7bcefaf2d75750d5d2001053d309f8ecd3ac4c89..6778e5e661650a2ac5773e7ce4d98dc6a63c1dfd 100644 (file)
--- a/i3lock.c
+++ b/i3lock.c
@@ -971,6 +971,7 @@ int main(int argc, char *argv[]) {
                     image_path, cairo_status_to_string(cairo_surface_status(img)));
             img = NULL;
         }
+        free(image_path);
     }
 
     /* Pixmap on which the image is rendered to (if any) */