Problem: Coverity reports a resource leak.
Solution: Close "fd" also when bailing out.
}
/* return number of matches */
retval = qi->qf_lists[qi->qf_curlist].qf_count;
- goto qf_init_ok;
+ goto qf_init_end;
}
EMSG(_(e_readerrf));
error2:
qi->qf_listcount--;
if (qi->qf_curlist > 0)
--qi->qf_curlist;
-qf_init_ok:
+qf_init_end:
if (fd != NULL)
fclose(fd);
free_efm_list(&fmt_first);
qf_clean_dir_stack(&dir_stack);
qf_clean_dir_stack(&file_stack);
-qf_init_end:
vim_free(namebuf);
vim_free(errmsg);
vim_free(pattern);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1966,
/**/
1965,
/**/