Move newfilt malloc to avoid possible memory leak.
Detected by clang's static analyzer.
Merge pull request #12 from selsky/master

Move newfilter malloc to avoid possible memory leak.