diff options
author | Bo Yang <teboring@google.com> | 2017-12-04 12:32:10 -0800 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2017-12-04 12:32:10 -0800 |
commit | b140cb3145f697a025d7b81b53a190d1e89b17dc (patch) | |
tree | 9af5d19c73692f7f926851490fc93484d7b41618 /php/tests/memory_leak_test.php | |
parent | 1acacf46ccd386de8ee660335b4b1a8dffb2967d (diff) | |
download | protobuf-b140cb3145f697a025d7b81b53a190d1e89b17dc.tar.gz protobuf-b140cb3145f697a025d7b81b53a190d1e89b17dc.tar.bz2 protobuf-b140cb3145f697a025d7b81b53a190d1e89b17dc.zip |
Fix memory leak when creating map field via array.
Diffstat (limited to 'php/tests/memory_leak_test.php')
-rw-r--r-- | php/tests/memory_leak_test.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/php/tests/memory_leak_test.php b/php/tests/memory_leak_test.php index fa272b56..772b466f 100644 --- a/php/tests/memory_leak_test.php +++ b/php/tests/memory_leak_test.php @@ -110,6 +110,11 @@ $str_arr = array(); $m = new TestMessage(); $m->setRepeatedString($str_arr); +// Test create map field via array. +$str_arr = array(); +$m = new TestMessage(); +$m->setMapStringString($str_arr); + # $from = new TestMessage(); # $to = new TestMessage(); # TestUtil::setTestMessage($from); |