--- test/pdf2png.c 2016-04-20 14:47:06.919599228 -0700 +++ /var/run/systemd/journal/pdf2png.c 2018-08-14 02:19:34.250876897 -0700 @@ -67,10 +67,12 @@ FAIL (error->message); document = poppler_document_new_from_file (uri, NULL, &error); + g_free (uri); if (document == NULL) FAIL (error->message); page = poppler_document_get_page_by_label (document, page_label); + g_object_unref (document); if (page == NULL) FAIL ("page not found");