Close file descriptor leak in example code.
Coverity CID 1295388.
diff --git a/examples/in-memory.c b/examples/in-memory.c
index 4da097a..2006be5 100644
--- a/examples/in-memory.c
+++ b/examples/in-memory.c
@@ -110,6 +110,7 @@
     }
     if (fwrite(data, 1, size, fp) < size) {
 	fprintf(stderr, "can't write %s: %s\n", archive, strerror(errno));
+	fclose(fp);
 	return -1;
     }
     if (fclose(fp) < 0) {