Use calloc() instead of malloc() and memset().
Calculate the length of a couple of buffers only once, not every iteration,
since length of the buffers do not change.
Remove superfluous free().
Merge branch 'master' of github.com:okoeroo/libhtaccess