Problem: memory leak in netbeans_file_activated()
Solution: Free q on early return (Huihui Huang).
closes: #19626
Signed-off-by: Huihui Huang <625173@qq.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
return;
q = nb_quote(bufp->b_ffname);
- if (q == NULL || bp == NULL)
+ if (q == NULL)
+ return;
+ if (bp == NULL)
+ {
+ vim_free(q);
return;
+ }
vim_snprintf(buffer, sizeof(buffer), "%d:fileOpened=%d \"%s\" %s %s\n",
bufno,
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 133,
/**/
132,
/**/