summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiogo Ferreira <diogo@underdev.org>2016-09-13 20:59:54 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2016-09-13 21:59:54 +0200
commitfd2215b0f08991f0f710533b122a182438ff2237 (patch)
tree5705be9844485157f27b8a679124610a8ae1253f
parent17b7b77893c0c5f343e71625ac55bac69f07eed2 (diff)
i3lock: Stop leaking the image_path dup. (#93)
-rw-r--r--i3lock.c1
1 files changed, 1 insertions, 0 deletions
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) */