Fixed segment fault caused by my previous commit & minor memory leak

The commit caused segfault is located at https://github.com/swoole/swoole-src/commit/c07d2b76bbfce078e9fcd573e0a404e0fbddea98 in function `swProcessPool_create `