Fix the proto-enum leaking issue (#5286)

* Detect leak with sanitizer

* Fix proto-enum leak issue
This commit is contained in:
Vladimir Glavnyy
2019-04-12 03:52:01 +07:00
committed by Wouter van Oortmerssen
parent 2bd4a27550
commit 60340ac529
4 changed files with 13 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ namespace proto.test;
/// Enum doc comment.
enum ProtoEnum : int {
NUL = 0,
FOO = 1,
/// Enum 2nd value doc comment misaligned.
BAR = 5,

View File

@@ -8,6 +8,7 @@ package proto.test;
/// Enum doc comment.
enum ProtoEnum {
option allow_alias = true;
NUL = 0;
FOO = 1;
/// Enum 2nd value doc comment misaligned.
BAR = 5;

View File

@@ -4,6 +4,7 @@ namespace proto.test;
/// Enum doc comment.
enum ProtoEnum : int {
NUL = 0,
FOO = 1,
/// Enum 2nd value doc comment misaligned.
BAR = 5,