kernel: tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() in case of error
A memory leak vulnerability was found in the Samsung serial TTY driver in the Linux kernel. In s3c24xxserialgetclk, when clkgetrate fails, the previously allocated clock resource is not freed, leading to a memory leak. Repeated failures can cause resource exhaustion...