From a9a6a23f8e734f482dcbfaeac25607c576b17a0f Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 17 Feb 2014 14:41:27 -0500 Subject: Add free() of a NULL pointer to make tools happy --- src/format.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/format.c b/src/format.c index 999f2e4..e17fac0 100644 --- a/src/format.c +++ b/src/format.c @@ -2812,6 +2812,10 @@ format_ifeq(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e, slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, "ifeq: error evaluating \"%s\"\n", argv[1]); format_free_parsed_args(argv); + /* Shouldn't be necessary, since format_get_data_set() should + * only ever return a NULL lengths list when it returns NULL, + * but it'll make tools happy. */ + free(lengths); return -EINVAL; } -- cgit