Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mart Lubbers
CleanSerial
Commits
937db9ab
Commit
937db9ab
authored
Oct 06, 2016
by
Mart Lubbers
Browse files
fix free
parent
f679e433
Changes
1
Show whitespace changes
Inline
Side-by-side
tty.c
View file @
937db9ab
...
...
@@ -158,7 +158,7 @@ unsigned long *errcl = NULL;
void
ttyerror
(
CleanString
*
result
)
{
debug
(
"ttyerror"
);
if
(
errcl
=
=
NULL
)
if
(
errcl
!
=
NULL
)
free
(
errcl
);
errcl
=
my_malloc
(
sizeof
(
unsigned
long
)
*
CleanStringSizeInts
(
strlen
(
error
)));
...
...
@@ -184,7 +184,7 @@ void ttyreadline(int fd, CleanString *result, int *fdo)
}
buf
[
charsread
]
=
'\0'
;
if
(
readlinecl
=
=
NULL
)
if
(
readlinecl
!
=
NULL
)
free
(
readlinecl
);
readlinecl
=
my_malloc
(
sizeof
(
unsigned
long
)
*
CleanStringSizeInts
(
charsread
));
...
...
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