Properly free section_clause.
This commit is contained in:
parent
06c7dd3e11
commit
a5fb0c00f0
|
@ -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>
|
||||
* All rights reserved.
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#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/stat.h>
|
||||
|
@ -649,7 +649,7 @@ generate_search_query(query_args *args, const char *snippet_args[3])
|
|||
|
||||
RETURN:
|
||||
sqlite3_free(machine_clause);
|
||||
sqlite3_free(section_clause);
|
||||
free(section_clause);
|
||||
sqlite3_free(limit_clause);
|
||||
return query;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue