Run --gc-sections tests only if supported.
[deliverable/binutils-gdb.git] / gdb / ser-unix.c
index da3a4c30b61484d3d08fe509b1c17d7b8ec5d16d..c541452a8ccbde330cb1e6010ded857591e09821 100644 (file)
@@ -183,7 +183,10 @@ hardwire_get_tty_state (struct serial *scb)
   state = (struct hardwire_ttystate *) xmalloc (sizeof *state);
 
   if (get_tty_state (scb, state))
-    return NULL;
+    {
+      xfree (state);
+      return NULL;
+    }
 
   return (serial_ttystate) state;
 }
This page took 0.023152 seconds and 4 git commands to generate.