Memory leak.
diff --git a/apps/gendsa.c b/apps/gendsa.c
index 44d2b42..49ae0a0 100644
--- a/apps/gendsa.c
+++ b/apps/gendsa.c
@@ -158,6 +158,7 @@
 		goto end;
 		}
 	BIO_free(in);
+	in = NULL;
 		
 	out=BIO_new(BIO_s_file());
 	if (out == NULL) goto end;
@@ -193,6 +194,7 @@
 end:
 	if (ret != 0)
 		ERR_print_errors(bio_err);
+	if (in != NULL) BIO_free(in);
 	if (out != NULL) BIO_free(out);
 	if (dsa != NULL) DSA_free(dsa);
 	EXIT(ret);