server: memory leaks fixed in sv_demo.c