Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b4.4 bug: Fix free/put of uninitialized pointers in ldmsd_request error handling paths #1484

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
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: 2 additions & 2 deletions ldms/src/ldmsd/ldmsd_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -2549,7 +2549,7 @@ int strgp_decomp_init(ldmsd_strgp_t strgp, ldmsd_req_ctxt_t req);
static int strgp_add_handler(ldmsd_req_ctxt_t reqc)
{
char *attr_name, *name, *plugin, *container, *schema, *interval, *regex;
char *decomp;
char *decomp = NULL;
name = plugin = container = schema = NULL;
size_t cnt = 0;
uid_t uid;
Expand Down Expand Up @@ -8596,7 +8596,7 @@ static int prdcr_listen_del_handler(ldmsd_req_ctxt_t reqc)
int rc = 0;
char *name = NULL;
struct ldmsd_sec_ctxt sctxt;
ldmsd_prdcr_listen_t pl;
ldmsd_prdcr_listen_t pl = NULL;

name = ldmsd_req_attr_str_value_get_by_id(reqc, LDMSD_ATTR_NAME);
if (!name) {
Expand Down
Loading