diff options
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 0c97702050..7b07f9358a 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -4722,7 +4722,8 @@ get_errorlist_properties(win_T *wp, dict_T *what, dict_T *retdict) if (di != NULL) { copy_tv(qi->qf_lists[qf_idx].qf_ctx, &di->di_tv); - dict_add(retdict, di); + if (dict_add(retdict, di) == FAIL) + dictitem_free(di); } } else |