bug fix: #58 Segfaults after a few nginx reloads

sometimes when nginx reload conf, the path will be assigned unexpact data if use the alloc function