YAN HONG YE <yanhong...@mpsa.com> wrote: > char *sql; > sprintf(sql,"select * from myprivate;");
Start by changing this to sql = "select * from myprivate;"; > free(sql); > free(result); ... and dropping these two. You should only free() what you've malloc'ed, and you haven't malloc'ed either of them. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users