diff --git a/SRC/element/mixedBeamColumn/MixedBeamColumn2d.cpp b/SRC/element/mixedBeamColumn/MixedBeamColumn2d.cpp index 799e6aefe..88d16c725 100644 --- a/SRC/element/mixedBeamColumn/MixedBeamColumn2d.cpp +++ b/SRC/element/mixedBeamColumn/MixedBeamColumn2d.cpp @@ -241,6 +241,7 @@ void * OPS_MixedBeamColumn2d() { return 0; } + delete [] sections; return theElement; } diff --git a/SRC/element/mixedBeamColumn/MixedBeamColumn3d.cpp b/SRC/element/mixedBeamColumn/MixedBeamColumn3d.cpp index 3dca64679..f90a379e0 100644 --- a/SRC/element/mixedBeamColumn/MixedBeamColumn3d.cpp +++ b/SRC/element/mixedBeamColumn/MixedBeamColumn3d.cpp @@ -224,6 +224,7 @@ void * OPS_MixedBeamColumn3d() { return 0; } + delete [] sections; return theElement; } diff --git a/SRC/interpreter/OpenSeesOutputCommands.cpp b/SRC/interpreter/OpenSeesOutputCommands.cpp index 2e65420ab..c52d25983 100644 --- a/SRC/interpreter/OpenSeesOutputCommands.cpp +++ b/SRC/interpreter/OpenSeesOutputCommands.cpp @@ -314,6 +314,10 @@ int OPS_nodeEigenvector() // get eigen vectors Node* theNode = theDomain->getNode(data[0]); + if (theNode == 0) { + opserr << "nodeEigenvector - node with tag " << data[0] << " not found\n"; + return -1; + } const Matrix &theEigenvectors = theNode->getEigenvectors(); int size = theEigenvectors.noRows(); diff --git a/SRC/material/section/FiberSection3d.cpp b/SRC/material/section/FiberSection3d.cpp index b39403178..9067888b4 100644 --- a/SRC/material/section/FiberSection3d.cpp +++ b/SRC/material/section/FiberSection3d.cpp @@ -1331,7 +1331,7 @@ FiberSection3d::setResponse(const char **argv, int argc, OPS_Stream &output) } output.endTag(); - return theResponse; + return SectionForceDeformation::setResponse(argv, argc, output); } diff --git a/SRC/recorder/ElementRecorder.cpp b/SRC/recorder/ElementRecorder.cpp index 14ffcba32..1aa7d3b07 100644 --- a/SRC/recorder/ElementRecorder.cpp +++ b/SRC/recorder/ElementRecorder.cpp @@ -249,13 +249,14 @@ OPS_ElementRecorder() nargrem = 1 + OPS_GetNumRemainingInputArgs(); data = new const char *[nargrem]; data[0] = option; - argv = new char*[nargrem]; + //argv = new char*[nargrem]; char buffer[128]; for (int i = 1; i < nargrem; i++) { - argv[i] = new char[128]; + data[i] = new char[128]; // Turn everything in to a string for setResponse - data[i] = OPS_GetStringFromAll(buffer, 128); + //data[i] = OPS_GetStringFromAll(buffer, 128); + OPS_GetStringFromAll((char*)data[i], 128); } } } @@ -287,11 +288,11 @@ OPS_ElementRecorder() data, nargrem, echoTimeFlag, *domain, *theOutputStream, dT, &dofs); - if (argv != 0) { + if (data != 0) { for (int i=1; i