projects
/
platform
/
upstream
/
ltrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d5252
)
Fix use-after-free
author
Petr Machata
<pmachata@redhat.com>
Wed, 6 Nov 2013 09:14:23 +0000
(10:14 +0100)
committer
Chanho Park
<chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:23 +0000
(20:38 +0900)
prototype.c
patch
|
blob
|
history
diff --git
a/prototype.c
b/prototype.c
index
7f91897
..
a892666
100644
(file)
--- a/
prototype.c
+++ b/
prototype.c
@@
-564,11
+564,11
@@
protolib_cache_maybe_load(struct protolib_cache *cache,
|| (*retp == NULL
&& load_config(cache, key, 0, retp) < 0))
{
- if (!own_key)
- free((void *) key);
fprintf(stderr,
"Error occurred when attempting to load a prototype "
"library for %s.\n", key);
+ if (!own_key)
+ free((void *) key);
return -1;
}