[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] Fwd: SF.net SVN: supercollider: [6660] trunk/Source/lang/LangPrimSource/ PyrSerialPrim.cpp



Begin forwarded message:
From: kersten@xxxxxxxxxxxxxxxxxxxxx
Date: 21. November 2007 12:53:57 GMT+01:00
To: sc-dev@xxxxxxxxxxxxxxx
Subject: SF.net SVN: supercollider: [6660] trunk/Source/lang/ LangPrimSource/ PyrSerialPrim.cpp


Revision: 6660
          http://svn.sourceforge.net/supercollider/?rev=6660&view=rev
Author:   kersten
Date:     2007-11-21 03:53:57 -0800 (Wed, 21 Nov 2007)

Log Message:
-----------
close file descriptor before throwing exception

Modified Paths:
--------------
    trunk/Source/lang/LangPrimSource/PyrSerialPrim.cpp

Modified: trunk/Source/lang/LangPrimSource/PyrSerialPrim.cpp
===================================================================
--- trunk/Source/lang/LangPrimSource/PyrSerialPrim.cpp 2007-11-21 11:49:58 UTC (rev 6659) +++ trunk/Source/lang/LangPrimSource/PyrSerialPrim.cpp 2007-11-21 11:53:57 UTC (rev 6660)
@@ -222,6 +222,7 @@
 			break;
 #endif // !_POSIX_C_SOURCE
 		default:
+			close(m_fd);
 			throw Error("unsupported baudrate");
 	}



This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.