[PC-BSD Commits] r15625 - pcbsd/current/src-qt4/pc-sounddetect
svn at pcbsd.org
svn at pcbsd.org
Tue Feb 28 10:37:44 PST 2012
Author: kris
Date: 2012-02-28 18:37:44 +0000 (Tue, 28 Feb 2012)
New Revision: 15625
Modified:
pcbsd/current/src-qt4/pc-sounddetect/sound_detect.c
Log:
Fix possible Resource leak
Modified: pcbsd/current/src-qt4/pc-sounddetect/sound_detect.c
===================================================================
--- pcbsd/current/src-qt4/pc-sounddetect/sound_detect.c 2012-02-28 18:32:13 UTC (rev 15624)
+++ pcbsd/current/src-qt4/pc-sounddetect/sound_detect.c 2012-02-28 18:37:44 UTC (rev 15625)
@@ -146,6 +146,7 @@
}
if((ouF = open((const char*) dest, O_WRONLY | O_CREAT)) == -1) {
+ close(inF);
perror("open");
return -1;
}
More information about the Commits
mailing list