projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* serial.c (serial_close): If scb is NULL, don't try to close
[deliverable/binutils-gdb.git]
/
gdb
/
serial.c
diff --git
a/gdb/serial.c
b/gdb/serial.c
index 0e5a064b2537f77b1a62153a607e1fe4c701e48a..005c946e9c12eef6dd78856b01b9ab6ce58488b0 100644
(file)
--- a/
gdb/serial.c
+++ b/
gdb/serial.c
@@
-116,9
+116,11
@@
serial_close(scb)
{
last_serial_opened = NULL;
- scb->ops->close(scb);
-
- free(scb);
+ if (scb != NULL)
+ {
+ scb->ops->close(scb);
+ free(scb);
+ }
}
#if 0
This page took
0.024118 seconds
and
4
git commands to generate.