Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
3b652629
Commit
3b652629
authored
Sep 22, 2016
by
Johny Mattsson
Browse files
Less memory leaks if not coding in a rush...
parent
1f073e8b
Changes
1
Show whitespace changes
Inline
Side-by-side
components/platform/platform_partition.c
View file @
3b652629
...
...
@@ -76,7 +76,7 @@ bool platform_partition_add (const platform_partition_t *info)
esp_err_t
err
=
spi_flash_read
(
PARTITION_ADD
,
(
uint32_t
*
)
part_table
,
SPI_FLASH_SEC_SIZE
);
if
(
err
!=
ESP_OK
)
return
false
;
goto
out
;
uint8_t
idx
=
0
;
for
(;
possible_idx
(
idx
);
++
idx
)
...
...
@@ -99,6 +99,7 @@ bool platform_partition_add (const platform_partition_t *info)
PARTITION_ADD
,
(
uint32_t
*
)
part_table
,
SPI_FLASH_SEC_SIZE
);
}
out:
free
(
part_table
);
return
err
==
ESP_OK
;
}
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