diff options
author | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-08-27 13:20:21 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-08-27 13:20:42 -0400 |
commit | ae0b504db9951ded97afff8c1ed78e8916743c2e (patch) | |
tree | ac07049b4ce2f90ff739feae352b63c58301c5eb /src | |
parent | dab89acaacfc083b9e1141afd69fa98dfe0e9e39 (diff) | |
download | slapi-nis-ae0b504db9951ded97afff8c1ed78e8916743c2e.tar.gz slapi-nis-ae0b504db9951ded97afff8c1ed78e8916743c2e.tar.xz slapi-nis-ae0b504db9951ded97afff8c1ed78e8916743c2e.zip |
Don't leak "buf" if its contents are unused
Diffstat (limited to 'src')
-rw-r--r-- | src/format.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/format.c b/src/format.c index 3591dc0..8f42223 100644 --- a/src/format.c +++ b/src/format.c @@ -3497,6 +3497,8 @@ format_dribble_merge(struct plugin_state *state, Slapi_PBlock *pb, bv.bv_val = buf; bv.bv_len = buf_used; format_add_bv_list(&choices, &bv); + } else { + free(buf); } format_free_parsed_args(argv); if (choices != NULL) { |