Skip to content

Commit

Permalink
Fix free/put of uninitialized pointers in ldmsd_request error handlin…
Browse files Browse the repository at this point in the history
…g paths.
  • Loading branch information
baallan authored and tom95858 committed Oct 29, 2024
1 parent b61c4e4 commit f81bfeb
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit f81bfeb

Please sign in to comment.