Ticket #357: termios_free_patch.diff
Line | |
---|
1 | *** rtems-ss-20021111/cpukit/libcsupport/src/termios.c Thu Jan 31 22:42:36 2002 |
---|
2 | --- rtems-ss-20021111-ide/cpukit/libcsupport/src/termios.c Thu Feb 20 20:34:10 2003 |
---|
3 | *************** rtems_termios_open ( |
---|
4 | *** 173,179 **** |
---|
5 | */ |
---|
6 | tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; |
---|
7 | tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); |
---|
8 | ! if (tty->rawInBuf.theBuf == NULL) { |
---|
9 | free((void *)(tty->rawInBuf.theBuf)); |
---|
10 | free(tty); |
---|
11 | rtems_semaphore_release (rtems_termios_ttyMutex); |
---|
12 | --- 173,179 ---- |
---|
13 | */ |
---|
14 | tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; |
---|
15 | tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); |
---|
16 | ! if (tty->rawOutBuf.theBuf == NULL) { |
---|
17 | free((void *)(tty->rawInBuf.theBuf)); |
---|
18 | free(tty); |
---|
19 | rtems_semaphore_release (rtems_termios_ttyMutex); |
---|
Download in other formats: