Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
adc08d17
Commit
adc08d17
authored
Nov 21, 2017
by
devsaurus
Browse files
fix malloc/free from stdlib
parent
e2d77062
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/u8g2lib/u8x8_d_fbrle.c
View file @
adc08d17
...
...
@@ -6,8 +6,7 @@
#include "u8x8_nodemcu_hal.h"
#include <stdlib.h>
#include <string.h>
#include "c_stdlib.h"
static
const
u8x8_display_info_t
u8x8_fbrle_display_info
=
...
...
@@ -105,7 +104,7 @@ static uint8_t u8x8_d_fbrle(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *ar
uint8_t
*
buf
=
((
u8x8_tile_t
*
)
arg_ptr
)
->
tile_ptr
;
struct
fbrle_line
*
fbrle_line
;
if
(
!
(
fbrle_line
=
(
struct
fbrle_line
*
)
malloc
(
fbrle_line_size
)))
{
if
(
!
(
fbrle_line
=
(
struct
fbrle_line
*
)
c_
malloc
(
fbrle_line_size
)))
{
break
;
}
...
...
@@ -148,7 +147,7 @@ static uint8_t u8x8_d_fbrle(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *ar
}
}
free
(
fbrle_line
);
c_
free
(
fbrle_line
);
}
break
;
...
...
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