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) */