diff options
| -rw-r--r-- | getgbook.c | 5 | 
1 files changed, 2 insertions, 3 deletions
| @@ -72,9 +72,8 @@ Page *getpagedetail(char *bookid, char *pg)  		return NULL;  	snprintf(m, 80, "\"pid\":\"%s\"", pg); -	if((c = strstr(buf,m)) == NULL) { -		free(buf); return NULL; -	} +	if((c = strstr(buf,m)) == NULL) +		return NULL;  	page = malloc(sizeof(Page));  	strncpy(page->name, pg, 80); | 
