Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
rsm
Commits
3554bef0
Commit
3554bef0
authored
May 11, 2020
by
Norby, Tom
Browse files
Memory management.
parent
c8e1df9e
Pipeline
#101215
passed with stages
in 7 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rsmcore/session.cc
View file @
3554bef0
...
@@ -261,6 +261,7 @@ QString SFTPFile::read(size_t nBytes)
...
@@ -261,6 +261,7 @@ QString SFTPFile::read(size_t nBytes)
if
(
nBytesRead
<
0
)
if
(
nBytesRead
<
0
)
{
{
close
();
close
();
delete
[]
buf
;
return
QString
();
return
QString
();
}
}
QString
str
(
buf
);
QString
str
(
buf
);
...
...
rsmcore/sessionworker.cc
View file @
3554bef0
...
@@ -258,6 +258,7 @@ void SessionWorker::requestExec(QString command)
...
@@ -258,6 +258,7 @@ void SessionWorker::requestExec(QString command)
{
{
radix_tagged_line
(
"Failed to open channel"
);
radix_tagged_line
(
"Failed to open channel"
);
emit
execFailed
(
"Failed to open a channel on the session."
);
emit
execFailed
(
"Failed to open a channel on the session."
);
delete
channel
;
return
;
return
;
}
}
...
@@ -267,6 +268,7 @@ void SessionWorker::requestExec(QString command)
...
@@ -267,6 +268,7 @@ void SessionWorker::requestExec(QString command)
radix_tagged_line
(
"Failed to request exec."
);
radix_tagged_line
(
"Failed to request exec."
);
emit
execFailed
(
"Failed to execute remote command."
);
emit
execFailed
(
"Failed to execute remote command."
);
channel
->
close
();
channel
->
close
();
delete
channel
;
return
;
return
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment