cppsp: fixed cache memory leak during static file serving