[PATCH] httpapi: Fix a memory leak (Valgrind).