Commit Diff


commit - ab49325580f82fd698b4d0503625fa1bbb7f1652
commit + 3e4edf553229c6288719e8622022d71e5aeac2b5
blob - 73844c2b82bfd4dffc4278ec535019ca2e956b96
blob + 547a60d7b8cd9bf024edbc1b6e869566fc4b85b3
--- gotwebd/auth.c
+++ gotwebd/auth.c
@@ -190,6 +190,7 @@ auth_gen_token(uint64_t uid, const char *hostname)
 
 	b64 = BIO_new(BIO_f_base64());
 	if (b64 == NULL) {
+		BIO_free(bmem);
 		free(tok);
 		return NULL;
 	}