projects
/
platform
/
core
/
pim
/
calendar-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8329a2a
)
cal_vcalendar_parse.c: Resolved one error and memory leak
58/29958/1
author
subham.sen
<subham.sen@samsung.com>
Thu, 6 Nov 2014 06:36:30 +0000
(12:06 +0530)
committer
subham.sen
<subham.sen@samsung.com>
Thu, 6 Nov 2014 06:46:11 +0000
(12:16 +0530)
Signed-off-by: subham.sen <subham.sen@samsung.com>
Change-Id: If9c1fbbd171933340b1b9805e5bac64f32cbd169
common/cal_vcalendar_parse.c
patch
|
blob
|
history
diff --git
a/common/cal_vcalendar_parse.c
b/common/cal_vcalendar_parse.c
index
fd6c59b
..
7eb1c09
100644
(file)
--- a/
common/cal_vcalendar_parse.c
+++ b/
common/cal_vcalendar_parse.c
@@
-1453,9
+1453,10
@@
static int __cal_vcalendar_parse_rrule_ver1(calendar_record_h record, char *p)
len = strlen(r) + strlen(t[i]) + 2;
len += (nth_week == 0) ? 0 : 8; // 8 is buf
q = calloc(len, sizeof(char));
- if (NULL ==
r
)
+ if (NULL ==
q
)
{
ERR("calloc() failed");
+ CAL_FREE(r);
g_strfreev(t);
return CALENDAR_ERROR_DB_FAILED;
}