summaryrefslogtreecommitdiff
path: root/perl_dmod/Cstore/t/Cstore.t
diff options
context:
space:
mode:
authorGenta IHA <genta@teeda.jp>2018-01-15 18:17:20 +0900
committerGenta IHA <genta@teeda.jp>2018-01-16 11:37:16 +0900
commit0c5b32919e64e2fbdfd26e900f06eb29f47fc295 (patch)
tree32081624d49b13c3874bbc045d07344ca29ccd8f /perl_dmod/Cstore/t/Cstore.t
parent247e04c8a59b6e3b32d88fe6dac7bbb4948845a4 (diff)
downloadvyatta-cfg-0c5b32919e64e2fbdfd26e900f06eb29f47fc295.tar.gz
vyatta-cfg-0c5b32919e64e2fbdfd26e900f06eb29f47fc295.zip
vyatta-cfg: Fix memory leak in Cstore perl binding
The Cstore perl binding (XS) has memory leak bug. This commit will fix this issue. All XS should implement "DESTROY" function to free memory, but this binding haven't this function. It leads memory leak each time when you call "new Cstore();" in perl code. Additionally, VyOS Helium standard Perl module "Vyatta::Config" have a Cstore instance variable, and each time calling "new Vyatta::Config();" in Perl causes memory leak due to this issue. Especially, the long-live process using Vyatta::Config (e.g. vyos-intfwatched) lead to serious memory exhaustion problem due to this issue. This patch implements the "DESTROY" function in XS for Cstore library, and fix this memory leak issue.
Diffstat (limited to 'perl_dmod/Cstore/t/Cstore.t')
0 files changed, 0 insertions, 0 deletions