Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
b3ee8302
Commit
b3ee8302
authored
Apr 08, 2009
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug in allocate memory
parent
8f3607b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ComediInterface.cc
extentions/IOControl/ComediInterface.cc
+2
-3
No files found.
extentions/IOControl/ComediInterface.cc
View file @
b3ee8302
...
...
@@ -59,7 +59,7 @@ std::vector<lsampl_t> ComediInterface::getAnalogPacket( int subdev, int channel,
int
ret
=
comedi_do_insn
(
card
,
&
insn
);
if
(
ret
<
0
)
{
delete
data
;
delete
[]
data
;
ostringstream
err
;
err
<<
"(ComediInterface:getAnalogPacket): can`t read data from subdev="
<<
subdev
...
...
@@ -73,7 +73,7 @@ std::vector<lsampl_t> ComediInterface::getAnalogPacket( int subdev, int channel,
if
(
ret
>
0
)
memcpy
(
&
result
[
0
],
data
,
ret
*
sizeof
(
lsampl_t
));
delete
data
;
delete
[]
data
;
return
result
;
}
...
...
@@ -132,7 +132,6 @@ void ComediInterface::instrChannel( int subdev, int channel, const std::string i
err
<<
"(ComediInterface:instrChannel): unknown instruction "
<<
" subdev="
<<
subdev
<<
" channel="
<<
channel
<<
" instruction="
<<
instr
;
throw
Exception
(
err
.
str
());
return
;
}
args
.
insert
(
args
.
begin
(),
ins
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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