Don't free the _PSS buffer until after we check to see if we have no valid states as otherwise we will try to free the buffer twice.
Don't free the _PSS buffer until after we check to see if we have no valid
states as otherwise we will try to free the buffer twice.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase