Problem: Memory leak in get_qfline_items() on alloc failure
Solution: Call dict_unref() with the dict (Yasuhiro Matsumoto).
related: #20668
related: #20745
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
if ((dict = dict_alloc()) == NULL)
return FAIL;
if (list_append_dict(list, dict) == FAIL)
+ {
+ dict_unref(dict);
return FAIL;
+ }
buf[0] = qfp->qf_type;
buf[1] = NUL;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 797,
/**/
796,
/**/