Skip to content

Commit

Permalink
Corrected memory leak on key storage allocation on low memory situation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mika Leppänen committed Jan 11, 2021
1 parent 23c2f7e commit 0374f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

### Bugfix
* Use all allowed channels with Brazil domain
* Corrected memory leak on Border Router key storage that could occur when key storage is allocated on low memory situation

## Release v12.7.0 (14-12-2020)

Expand Down
1 change: 1 addition & 0 deletions source/6LoWPAN/ws/ws_pae_key_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ static int8_t ws_pae_key_storage_allocate(const void *instance, uint16_t key_sto
if (new_storage_array == NULL) {
key_storage_array->storage_array_handle = ns_dyn_mem_alloc(key_storage_size);
if (!key_storage_array->storage_array_handle) {
ns_dyn_mem_free(key_storage_array);
return -1;
}
key_storage_array->allocated = true;
Expand Down

0 comments on commit 0374f74

Please sign in to comment.