Index: branches/BNC_2.12/src/PPP/pppClient.cpp
===================================================================
--- branches/BNC_2.12/src/PPP/pppClient.cpp	(revision 7902)
+++ branches/BNC_2.12/src/PPP/pppClient.cpp	(revision 7905)
@@ -282,5 +282,5 @@
       unsigned nObs        = 0;
       for (unsigned ii = 0; ii < obsVector.size(); ii++) {
-        t_pppSatObs* satObs = obsVector.at(ii);
+        const t_pppSatObs* satObs = obsVector.at(ii);
         if (satObs->prn().system() == 'R') {
           if (tLC == t_lc::dummy) {
@@ -309,4 +309,5 @@
       if (fabs(maxRes) > 1000.0) {
         LOG << "t_pppClient::cmpOffGG outlier " << maxResPrn.toString() << " " << maxRes << endl;
+        delete obsVector.at(maxResIndex);
         obsVector.erase(obsVector.begin() + maxResIndex);
       }
@@ -450,4 +451,9 @@
 
     _offGG = cmpOffGG(_obsRover);
+
+    if (int(_obsRover.size()) < OPT->_minObs) {
+      LOG << "t_pppClient::processEpoch not enough observations" << endl;
+      return finish(failure);
+    }
 
     // Store last epoch of data
