Skip to content

Commit

Permalink
configfile: Free a string buffer returned by cf_util_get_string().
Browse files Browse the repository at this point in the history
  • Loading branch information
tokkee committed Nov 28, 2012
1 parent 67aba0f commit d641c34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/configfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ static int cf_include_all (oconfig_item_t *root, int depth)
}

new = cf_read_generic (old->values[0].value.string, pattern, depth + 1);
sfree (pattern);

if (new == NULL)
continue;

Expand Down

0 comments on commit d641c34

Please sign in to comment.