String variable argument list memory leaks fix

Variable argument list was not properly released which in turn caused memory leak.