d068153915
CVSTrac implements a patch-set and bug tracking system for CVS as a single self-contained executable, running as CGI, from inetd, or as a stand-alone web server. - Automatically generates a patch-set log from check-in comments - User-defined color-coded database queries - Built-in repository browser and Wiki - Minimal memory, disk and CPU requirements - Per-user access control - Uses SQLite, no heavy database engine dependency - Can be run from a chroot jail
17 lines
652 B
Plaintext
17 lines
652 B
Plaintext
$OpenBSD: patch-makewikiinit_c,v 1.1.1.1 2009/02/17 00:16:04 sthen Exp $
|
|
|
|
http://www.cvstrac.org/cvstrac/chngview?cn=969
|
|
Use sqlite3_free() not free() on functions returning memory strings.
|
|
|
|
--- makewikiinit.c.orig Tue Feb 21 01:48:34 2006
|
|
+++ makewikiinit.c Thu Aug 7 01:10:14 2008
|
|
@@ -98,7 +98,7 @@ int main(int argc, char **argv){
|
|
"SELECT name, text FROM wiki WHERE name='%s' LIMIT 1",
|
|
azName[i]);
|
|
rc = sqlite3_exec(db,zSql,generate_page,0,&zErrMsg);
|
|
- free(zSql);
|
|
+ sqlite3_free(zSql);
|
|
if( rc!=SQLITE_OK ){
|
|
fprintf(stderr,"Database error: %s\n", zErrMsg);
|
|
exit(1);
|