Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Fix memory leak in case uAtClientUnlock returns failure
Browse files Browse the repository at this point in the history
  • Loading branch information
se-stefan authored and RobMeades committed Oct 3, 2024
1 parent 9576c6b commit 4d8e564
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cell/src/u_cell_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,9 @@ int32_t uCellHttpOpen(uDeviceHandle_t cellHandle, const char *pServerName,
// Free memory
uPortFree(pHttpInstance);
}
} else {
// Free memory
uPortFree(pHttpInstance);
}
}
// Free temporary memory
Expand Down

0 comments on commit 4d8e564

Please sign in to comment.