summaryrefslogtreecommitdiff
path: root/getgbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'getgbook.c')
-rw-r--r--getgbook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/getgbook.c b/getgbook.c
index 52eb82a..f944d9f 100644
--- a/getgbook.c
+++ b/getgbook.c
@@ -89,8 +89,8 @@ int main(int argc, char *argv[])
/* get cookies */
for(i=0;i<COOKIENUM;i++) {
- get("books.google.com", "/", NULL, cookies[i], &tmp);
- free(tmp);
+ if(get("books.google.com", "/", NULL, cookies[i], &tmp))
+ free(tmp);
}
bookid = argv[argc-1];