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

CORTX-33743: Analyze and fix memory leaks #2088

Merged
merged 33 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c465417
CORTX-33743: Analyze and fix memory leaks found in glibc when running…
swapnil-seagate Aug 18, 2022
77efafe
CORTX-33978: codacy cleanup: Fixed formatting issues (#2087)
pratik-patil-5611 Aug 18, 2022
c91f841
Cortx-29342: Port gdb-extensions.py to python3 (#2082)
Aug 19, 2022
edd8177
CORTX-30953: [Codacy] fix shell directive problems (#2084)
imvenkip Aug 19, 2022
7a7a588
CORTX-30751: Codacy code cleanup (#1606) (#1893)
alfhad Aug 19, 2022
9bc78b2
CORTX-30751: This patch fixes some of the codacy warnings. (#2057)
gaurkrgaurav Aug 19, 2022
05b9ece
CORTX-33978: Fixed codacy formatting issues (#2089)
pratik-patil-5611 Aug 19, 2022
3672ae9
CORTX-30751: Codacy code cleanup (#1606) (#1899)
alfhad Aug 19, 2022
f7e69a0
CORTX-30751: Codacy code cleanup (#1606) (#1932)
alfhad Aug 19, 2022
5b3d27c
CORTX-30751: Codacy code cleanup (#1606) (#1898)
alfhad Aug 19, 2022
aea35c1
CORTX-30751: Codacy code cleanup (#1606) (#2053)
rkothiya Aug 19, 2022
b4d4119
CORTX-30751: Codacy code cleanup (#1606) (#1965)
rkothiya Aug 20, 2022
66810f8
CORTX-33703: Codacy Cleanup (#2094)
rkothiya Aug 22, 2022
ea8ecad
CORTX-30751: Codacy code cleanup (#1606) (#1957)
rkothiya Aug 22, 2022
db799e0
CORTX-30751: Codacy code cleanup (#1606) (#1956)
rkothiya Aug 22, 2022
fa0aede
CORTX-30751: Codacy code cleanup (#1606) (#1855)
rkothiya Aug 22, 2022
ffc76d7
CORTX-30751: Codacy code cleanup (#2045)
rkothiya Aug 22, 2022
cbd0e5e
CORTX-30751: Codacy code cleanup (#1606) (#1972)
rkothiya Aug 22, 2022
a47dc9a
Adding async_disconnecting flag to avoid multiple async rpc disconn (…
Aug 22, 2022
dee37bb
CORTX-34010: Codacy code cleanup (#2096)
rkothiya Aug 22, 2022
73913ed
CORTX-30751: Codacy code cleanup (#1606) (#1920)
alfhad Aug 24, 2022
0a2dcf2
CORTX-30751: Codacy code cleanup (#1606) (#1896)
alfhad Aug 24, 2022
6f142a2
CORTX-32172: Fixes ADDB client logs to bundled it in rgw support bund…
rahul27kumar Aug 24, 2022
1597391
CORTX-33972: DI ST and UT fix (#2100)
rajatpatil98 Aug 25, 2022
d35cdad
CORTX-33964: Improvement in code coverage job (#2099)
rkothiya Aug 25, 2022
acaee6c
CORTX-34068: Fix m0_utils_common to point to correct path of m0hagen …
Aug 26, 2022
3437ac7
CORTX-33743_FIX_MEMORY_LEAK
swapnil-seagate Aug 26, 2022
4fbf4e9
Patch for testing the code
swapnil-seagate Aug 29, 2022
c12e226
Addressed review comments
swapnil-seagate Aug 30, 2022
0cd4f6d
Addressed review comments and testing the patch
swapnil-seagate Aug 30, 2022
5ab2d68
Addressed review comments and updatedthe code with required changes.
swapnil-seagate Aug 30, 2022
a84f997
Merge branch 'main' of https://github.com/swapnil-seagate/cortx-motr …
swapnil-seagate Aug 30, 2022
2f13b69
Addressed review comments
swapnil-seagate Aug 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ha/entrypoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,12 @@ static struct m0_rpc_item_ops ha_entrypoint_client_item_ops = {
static void ha_entrypoint_client_fop_release(struct m0_ref *ref)
{
struct m0_fop *fop;

struct m0_ha_entrypoint_req_fop *req_fop_data;
M0_ENTRY();
M0_PRE(ref != NULL);
fop = container_of(ref, struct m0_fop, f_ref);
req_fop_data = (struct m0_ha_entrypoint_req_fop*)fop->f_data.fd_data;
m0_buf_free(&req_fop_data->erf_git_rev_id);
fop->f_data.fd_data = NULL;
m0_fop_fini(fop);
M0_SET0(fop);
Expand Down
5 changes: 3 additions & 2 deletions motr/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ static void cs_reqh_ctx_fini(struct m0_reqh_context *rctx)
m0_free(rctx->rc_services[i]);
m0_free(rctx->rc_services);
m0_free(rctx->rc_service_fids);
m0_free((char*)rctx->rc_addb_stlocation);
swapnil-seagate marked this conversation as resolved.
Show resolved Hide resolved
rctx->rc_stob.s_sfile.sf_is_initialised = false;
rctx->rc_stob.s_ad_disks_init = false;
}
Expand Down Expand Up @@ -2291,8 +2292,8 @@ static int _args_parse(struct m0_motr *cctx, int argc, char **argv)
LAMBDA(void, (const char *s)
{
char tmp_buf[512];
sprintf(tmp_buf, "%s-%d", s, (int)m0_pid());
rctx->rc_addb_stlocation = strdup(tmp_buf);
snprintf(tmp_buf,sizeof(tmp_buf) ,"%s-%d", s, (int)m0_pid());
rctx->rc_addb_stlocation = m0_strdup(tmp_buf);
swapnil-seagate marked this conversation as resolved.
Show resolved Hide resolved
})),
M0_STRINGARG('d', "Device configuration file",
LAMBDA(void, (const char *s)
Expand Down