diff --git a/src/dict.c b/src/dict.c index d83024a97f..85e451ec71 100644 --- a/src/dict.c +++ b/src/dict.c @@ -1370,7 +1370,11 @@ dict_extend_func( if (type != NULL && check_typval_arg_type(type, &argvars[1], func_name, 2) == FAIL) + { + if (is_new) + dict_unref(d1); return; + } dict_extend(d1, d2, action, func_name); if (is_new) diff --git a/src/version.c b/src/version.c index 6402b27b46..d6194a9801 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 67, /**/ 66, /**/