projects
/
platform
/
core
/
system
/
libsvi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c6da0
)
feedback: add NULL check routine
23/50323/2
author
Taeyoung Kim
<ty317.kim@samsung.com>
Thu, 25 Jun 2015 11:17:56 +0000
(20:17 +0900)
committer
Taeyoung Kim
<ty317.kim@samsung.com>
Thu, 12 Nov 2015 05:32:50 +0000
(21:32 -0800)
Change-Id: I26ab7b72f0958cb591d7b37b37a48ffbaa6197a1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
src/parser.c
patch
|
blob
|
history
diff --git
a/src/parser.c
b/src/parser.c
index
5202cf9
..
671bcec
100644
(file)
--- a/
src/parser.c
+++ b/
src/parser.c
@@
-197,6
+197,12
@@
void feedback_free_config(struct feedback_config_info *info)
{
int i;
+ if (!info || !(info->data))
+ return;
+
+ if (!profile)
+ return;
+
for (i = 0; i < profile->max_pattern; i++) {
if (info->data[i].origin) {
free(info->data[i].origin);