Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makemandb Properly free section_clause.



details:   https://anonhg.NetBSD.org/src/rev/74bf54f8c7d9
branches:  trunk
changeset: 451849:74bf54f8c7d9
user:      leot <leot%NetBSD.org@localhost>
date:      Fri Jun 07 16:43:58 2019 +0000

description:
Properly free section_clause.

diffstat:

 usr.sbin/makemandb/apropos-utils.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 134aa05c5624 -r 74bf54f8c7d9 usr.sbin/makemandb/apropos-utils.c
--- a/usr.sbin/makemandb/apropos-utils.c        Fri Jun 07 15:49:20 2019 +0000
+++ b/usr.sbin/makemandb/apropos-utils.c        Fri Jun 07 16:43:58 2019 +0000
@@ -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@localhost>
  * 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 @@
 
 RETURN:
        sqlite3_free(machine_clause);
-       sqlite3_free(section_clause);
+       free(section_clause);
        sqlite3_free(limit_clause);
        return query;
 }



Home | Main Index | Thread Index | Old Index