Skip to content
Snippets Groups Projects
Commit b632136b authored by rswindell's avatar rswindell
Browse files

Fix another memory leak found by scan-build (in an error condition).

parent 318d1797
Branches
Tags
No related merge requests found
......@@ -132,6 +132,7 @@ static bool new_grp(unsigned new_grpnum)
grp_t** new_grp_list;
if ((new_grp_list = (grp_t **)realloc(cfg.grp, sizeof(grp_t *)*(cfg.total_grps + 1))) == NULL) {
free(new_group);
errormsg(WHERE, ERR_ALLOC, "group list", cfg.total_grps + 1);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment