summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-21 00:55:31 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-21 02:42:12 +0900
commit9e1a8f6f9852fd83192213bd8944c498d7802aaa (patch)
tree1a9062f4f763cef77291138f3b6dda4b938ade63
parent4f2de6960ec8cc4c01cbc18d10a04e6fc2585f82 (diff)
downloadelementary-9e1a8f6f9852fd83192213bd8944c498d7802aaa.tar.gz
index: Set variable to NULL after free.
Then NULL check for this variable is not valid. This fixes coverity CID 1193250: Use after free (USE_AFTER_FREE). @fix
-rw-r--r--src/lib/elm_index.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c
index b3defd60e..460cf16ea 100644
--- 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);
}
}