OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR go/47158
[pf3gnuchains/gcc-fork.git]
/
gcc
/
go
/
gofrontend
/
gogo-tree.cc
diff --git
a/gcc/go/gofrontend/gogo-tree.cc
b/gcc/go/gofrontend/gogo-tree.cc
index
05a701f
..
bcb2519
100644
(file)
--- a/
gcc/go/gofrontend/gogo-tree.cc
+++ b/
gcc/go/gofrontend/gogo-tree.cc
@@
-2832,7
+2832,11
@@
Gogo::call_builtin(tree* pdecl, source_location location, const char* name,
types[i] = va_arg(ap, tree);
args[i] = va_arg(ap, tree);
if (types[i] == error_mark_node || args[i] == error_mark_node)
- return error_mark_node;
+ {
+ delete[] types;
+ delete[] args;
+ return error_mark_node;
+ }
}
va_end(ap);