Properly free section_clause.

This commit is contained in:
leot 2019-06-07 16:43:58 +00:00
parent 06c7dd3e11
commit a5fb0c00f0
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: apropos-utils.c,v 1.44 2019/05/18 07:56:43 abhinav Exp $ */ /* $NetBSD: apropos-utils.c,v 1.45 2019/06/07 16:43:58 leot Exp $ */
/*- /*-
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com> * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
* All rights reserved. * All rights reserved.
@ -31,7 +31,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__RCSID("$NetBSD: apropos-utils.c,v 1.44 2019/05/18 07:56:43 abhinav Exp $"); __RCSID("$NetBSD: apropos-utils.c,v 1.45 2019/06/07 16:43:58 leot Exp $");
#include <sys/queue.h> #include <sys/queue.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -649,7 +649,7 @@ generate_search_query(query_args *args, const char *snippet_args[3])
RETURN: RETURN:
sqlite3_free(machine_clause); sqlite3_free(machine_clause);
sqlite3_free(section_clause); free(section_clause);
sqlite3_free(limit_clause); sqlite3_free(limit_clause);
return query; return query;
} }