[PC-BSD Commits] r15623 - in pcbsd/current/src-qt4: pc-netmanager/src/NetworkManager pc-netmanager/src/ethernetconfig pc-netmanager/src/wificonfig pc-pbigui

svn at pcbsd.org svn at pcbsd.org
Tue Feb 28 10:31:00 PST 2012


Author: kris
Date: 2012-02-28 18:30:59 +0000 (Tue, 28 Feb 2012)
New Revision: 15623

Modified:
   pcbsd/current/src-qt4/pc-netmanager/src/NetworkManager/networkman.cpp
   pcbsd/current/src-qt4/pc-netmanager/src/ethernetconfig/ethernetconfig.cpp
   pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp
   pcbsd/current/src-qt4/pc-pbigui/pbi.cpp
Log:

Fix some mismatching allocation / deallocation errors found by Yuri / cppcheck



Modified: pcbsd/current/src-qt4/pc-netmanager/src/NetworkManager/networkman.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-netmanager/src/NetworkManager/networkman.cpp	2012-02-28 17:36:25 UTC (rev 15622)
+++ pcbsd/current/src-qt4/pc-netmanager/src/NetworkManager/networkman.cpp	2012-02-28 18:30:59 UTC (rev 15623)
@@ -529,7 +529,7 @@
 void NetworkMan::runCommand( QString command )
 {
 	FILE *file = popen(command.toLatin1(),"r"); 
-	fclose(file);
+	pclose(file);
 }
 
 

Modified: pcbsd/current/src-qt4/pc-netmanager/src/ethernetconfig/ethernetconfig.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-netmanager/src/ethernetconfig/ethernetconfig.cpp	2012-02-28 17:36:25 UTC (rev 15622)
+++ pcbsd/current/src-qt4/pc-netmanager/src/ethernetconfig/ethernetconfig.cpp	2012-02-28 18:30:59 UTC (rev 15623)
@@ -270,7 +270,7 @@
 void ethernetconfig::runCommand( QString command )
 {
 	FILE *file = popen(command.toLatin1(),"r"); 
-	fclose(file);
+	pclose(file);
 }
 
 

Modified: pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp	2012-02-28 17:36:25 UTC (rev 15622)
+++ pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp	2012-02-28 18:30:59 UTC (rev 15623)
@@ -683,8 +683,8 @@
 
 void wificonfigwidgetbase::runCommand( QString Command )
 {
-              FILE *file = popen(Command.toLatin1(),"r"); 
-	fclose(file);
+        FILE *file = popen(Command.toLatin1(),"r"); 
+	pclose(file);
 }
 
 void wificonfigwidgetbase::slotRemoveProfileSSID(QString RemoveSSID)

Modified: pcbsd/current/src-qt4/pc-pbigui/pbi.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-pbigui/pbi.cpp	2012-02-28 17:36:25 UTC (rev 15622)
+++ pcbsd/current/src-qt4/pc-pbigui/pbi.cpp	2012-02-28 18:30:59 UTC (rev 15623)
@@ -358,7 +358,7 @@
 void PBI::runCommand( QString Command )
 {
       FILE *file = popen(Command.toLatin1(),"r"); 
-      fclose(file);
+      pclose(file);
 }
 
 



More information about the Commits mailing list