summaryrefslogtreecommitdiffstats
path: root/src/file_pdf.c
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2009-12-28 07:47:15 +0100
committerChristophe Grenier <[email protected]>2009-12-28 07:47:15 +0100
commit983d5cf0ece3d8f4002477ef474f1515075900c8 (patch)
tree0a969282e2c7066028713b17fd8323994244f40f /src/file_pdf.c
parentf6e292a10eb79e17aabf338c5aa0035d00ad21ee (diff)
PhotoRec: return immediatly when date/time has been found in pdf
Diffstat (limited to 'src/file_pdf.c')
-rw-r--r--src/file_pdf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_pdf.c b/src/file_pdf.c
index bf848576..8f9ce59a 100644
--- a/src/file_pdf.c
+++ b/src/file_pdf.c
@@ -188,6 +188,8 @@ static void file_date_pdf(file_recovery_t *file_recovery)
(date_asc[2]-'0')*10+(date_asc[3]-'0')-1900; /* year */
tm_time.tm_isdst = -1; /* unknown daylight saving time */
file_recovery->time=mktime(&tm_time);
+ free(buffer);
+ return ;
}
}
else