ws: Freed memory leak of cockpit_getpwnam_a()

Fixed #668
Closes #692

Reviewed-by: Stef Walter <stefw@redhat.com>