summaryrefslogtreecommitdiffstats
path: root/src/if_cscope.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r--src/if_cscope.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index bbb429ab91..f52316faec 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -1813,7 +1813,10 @@ cs_file_results(FILE *f, int *nummatches_a)
context = alloc(strlen(cntx)+5);
if (context == NULL)
+ {
+ vim_free(fullname);
continue;
+ }
if (strcmp(cntx, "<global>")==0)
strcpy(context, "<<global>>");