diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-13 17:57:19 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-13 17:57:19 +0000 |
commit | 2adba92338ce4acc6c52300ba76907686ec42284 (patch) | |
tree | afcaa2fd122e063ac8f0409d1bf1c4ba7731e600 /src/perl/common | |
parent | d68bbeb5efc0ecefe9e86ce4323661c5c282cee4 (diff) | |
download | irssi-2adba92338ce4acc6c52300ba76907686ec42284.zip |
fixed memory leaks with several functions.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2789 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/common')
-rw-r--r-- | src/perl/common/Core.xs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/perl/common/Core.xs b/src/perl/common/Core.xs index d6fdfdd8..da29b521 100644 --- a/src/perl/common/Core.xs +++ b/src/perl/common/Core.xs @@ -445,9 +445,15 @@ int level2bits(str) char *str -char * +void bits2level(bits) int bits +PREINIT: + char *ret; +PPCODE: + ret = bits2level(bits); + xPUSHs(sv_2mortal(new_pv(ret))); + g_free(ret); int combine_level(level, str) @@ -513,7 +519,7 @@ void pidwait_remove(pid) int pid -char * +void parse_special(cmd, data="", flags=0) char *cmd char *data |