summaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2018-08-21 10:01:44 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2018-08-21 10:01:44 -0400
commit3416fe952b3852bb7076d64b54048cc2fac1f80c (patch)
treeb0118cc382b0e0ceb21729d8e519e5b7d002cf1c /cgi-bin
parent5c463d3fe0cdac4ed29c7124daf04e1fdcfe7186 (diff)
downloadcups-3416fe952b3852bb7076d64b54048cc2fac1f80c.tar.gz
Fix memory leaks found by Coverity (Issue #5375)
Diffstat (limited to 'cgi-bin')
-rw-r--r--cgi-bin/search.c6
1 files changed, 4 insertions, 2 deletions
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);
}