From 3416fe952b3852bb7076d64b54048cc2fac1f80c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 21 Aug 2018 10:01:44 -0400 Subject: Fix memory leaks found by Coverity (Issue #5375) --- cgi-bin/search.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cgi-bin') diff --git a/cgi-bin/search.c b/cgi-bin/search.c index 3956afc33..ad1f5ed0e 100644 --- a/cgi-bin/search.c +++ b/cgi-bin/search.c @@ -1,10 +1,11 @@ /* * Search routines for CUPS. * - * Copyright 2007-2014 by Apple Inc. + * Copyright 2007-2018 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * - * Licensed under Apache License v2.0. See the file "LICENSE" for more information. + * Licensed under Apache License v2.0. See the file "LICENSE" for more + * information. */ /* @@ -361,4 +362,5 @@ void cgiFreeSearch(void *search) /* I - Search context */ { regfree((regex_t *)search); + free(search); } -- cgit v1.2.3