projects
/
platform
/
upstream
/
kmod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e84d912
)
Free abspath if kmod_module_new_from_path() fails.
author
Leandro Pereira
<leandro@hardinfo.org>
Tue, 29 Apr 2014 00:02:45 +0000
(21:02 -0300)
committer
Lucas De Marchi
<lucas.demarchi@intel.com>
Wed, 14 May 2014 23:21:20 +0000
(20:21 -0300)
libkmod/libkmod-module.c
patch
|
blob
|
history
diff --git
a/libkmod/libkmod-module.c
b/libkmod/libkmod-module.c
index
1d90f34
..
a160d5b
100644
(file)
--- a/
libkmod/libkmod-module.c
+++ b/
libkmod/libkmod-module.c
@@
-420,8
+420,10
@@
KMOD_EXPORT int kmod_module_new_from_path(struct kmod_ctx *ctx,
}
err = kmod_module_new(ctx, name, name, namelen, NULL, 0, &m);
- if (err < 0)
+ if (err < 0) {
+ free(abspath);
return err;
+ }
m->path = abspath;
*mod = m;