I have fixed some memory issue. And I attach it.

But all place of calling "db_get" have not been fixed yet. This is in progress.

The function "cgi_replace_parameter" simply discard old value "aPramQP[[idx]].zValue", this will result memory leak.