From owner-freebsd-hackers Sat Apr 15 20: 6:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from news1.newsindex.com (news1.newsindex.com [209.166.166.118]) by hub.freebsd.org (Postfix) with ESMTP id 26C3337B8D9 for ; Sat, 15 Apr 2000 20:06:45 -0700 (PDT) (envelope-from speck@news1.newsindex.com) Received: from localhost (speck@localhost) by news1.newsindex.com (8.8.5/8.8.5) with SMTP id XAA22358 for ; Sat, 15 Apr 2000 23:24:47 -0400 (EDT) Date: Sat, 15 Apr 2000 23:24:47 -0400 (EDT) From: Sean Peck To: freebsd-hackers@freebsd.org Subject: FREE Problem in BSD? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The following code is consistently throwing xxx in free(): warning: modified (page-) pointer. on the free(ENTRY.ptr) line. ENTRY is a datum, the trace printf's show that ENTRY.dptr has the same value immediately after the dbm_fetch as it has immediately before the free, but the message continues to be displayed... Anyone know what is going on here? ENTRY = dbm_fetch(db,URL); printf("%d\n",ENTRY.dptr); bzero(etemp,1000); if(ENTRY.dptr != NULL){ strncpy(etemp,ENTRY.dptr,ENTRY.dsize); // ENTRY.dptr[ENTRY.dsize]=0; sprintf(temp,"%s\xb3\xb3%s",URL.dptr,etemp); } else{ // printf("ERRER %d %s\n",dbm_error(db),array[y]); sprintf(temp,"%s\xb3\xb3%s",URL.dptr,"0"); } free(URL.dptr); if(ENTRY.dptr != NULL){ printf("%d\n",ENTRY.dptr); free(ENTRY.dptr); Sean Peck News Index -- The original News Only Search Engine. http://www.newsindex.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message