bug fix: #58 Segfaults after a few nginx reloads

Signed-off-by: Clemens Gruber <clemensgru@gmail.com>