| NULL ptr check for vals free - warvox - VoIP based wardialing tool, forked from… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 5a5e904aa64833ce0396d91497a3d21971f71854 | |
| parent ed9f6e5f44b4541ef1d82cc0722f7434caa4e022 | |
| Author: HD Moore <[email protected]> | |
| Date: Thu, 5 Mar 2009 07:53:13 +0000 | |
| NULL ptr check for vals free | |
| Diffstat: | |
| M src/ruby-kissfft/main.c | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| --- | |
| diff --git a/src/ruby-kissfft/main.c b/src/ruby-kissfft/main.c | |
| @@ -153,11 +153,11 @@ rbkiss_s_fftr(VALUE class, VALUE r_nfft, VALUE r_rate, VA… | |
| } | |
| cleanup: | |
| + if(vals) free(vals); | |
| free(cfg); | |
| free(tbuf); | |
| free(fbuf); | |
| free(mag2buf); | |
| - free(vals); | |
| return(res); | |
| } | |