projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f2de69
)
index: Set variable to NULL after free.
author
Daniel Juyung Seo
<seojuyung2@gmail.com>
Thu, 20 Mar 2014 15:55:31 +0000
(
00:55
+0900)
committer
Daniel Juyung Seo
<seojuyung2@gmail.com>
Thu, 20 Mar 2014 17:42:12 +0000
(
02:42
+0900)
Then NULL check for this variable is not valid.
This fixes coverity CID
1193250
: Use after free (USE_AFTER_FREE).
@fix
src/lib/elm_index.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_index.c
b/src/lib/elm_index.c
index b3defd60e571c78152dbf40eaade4c63323d9f85..460cf16eae6daf18498203ca28502e9ae6371a11 100644
(file)
--- a/
src/lib/elm_index.c
+++ b/
src/lib/elm_index.c
@@
-658,6
+658,7
@@
_sel_eval(Evas_Object *obj,
}
}
free(last);
+ last = NULL;
if (it->letter) last = strdup(it->letter);
}
}