From: Diogo Ferreira Date: Tue, 13 Sep 2016 19:59:54 +0000 (+0100) Subject: i3lock: Stop leaking the image_path dup. (#93) X-Git-Tag: 2.9~9 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3lock;a=commitdiff_plain;h=fd2215b0f08991f0f710533b122a182438ff2237 i3lock: Stop leaking the image_path dup. (#93) --- diff --git a/i3lock.c b/i3lock.c index 7bcefaf..6778e5e 100644 --- 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) */