Skip to content

Commit

Permalink
Fix two more mem leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
LocutusOfBorg committed Nov 29, 2022
1 parent b8371b4 commit 3f9fcec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ec_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ void load_conf(void)
} while (p++ < *tmp + tmplen );

DEBUG_MSG("load_conf: \tENTRY: %s [%s]", q, *tmp);
SAFE_FREE(*tmp);
} else {
/* set the integer value */
*(int *)value = strtol(p, (char **)NULL, 10);
Expand Down
1 change: 1 addition & 0 deletions src/ec_dissect.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ void dissect_del(char *name)
if (!strcasecmp(e->name, name)) {
del_decoder(e->level, e->type);
SLIST_REMOVE(&dissect_list, e, dissect_entry, next);
SAFE_FREE(e->name);
SAFE_FREE(e);
}
}
Expand Down

0 comments on commit 3f9fcec

Please sign in to comment.