patch 8.2.1733: Vim9: memory leaks when using nested function

Problem:    Vim9: memory leaks when using nested function.
Solution:   Free function when compilation fails.
diff --git a/src/version.c b/src/version.c
index e3d61eb..033a34b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1733,
+/**/
     1732,
 /**/
     1731,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 06ee2f5..2b93dea 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4408,7 +4408,10 @@
 	return eap->skip ? (char_u *)"" : NULL;
     if (ufunc->uf_def_status == UF_TO_BE_COMPILED
 	    && compile_def_function(ufunc, TRUE, cctx) == FAIL)
+    {
+	func_ptr_unref(ufunc);
 	return NULL;
+    }
 
     if (is_global)
     {