libkmod-module: Do not free the list in kmod_module_info_append
authorMichal Marek <mmarek@suse.cz>
Wed, 16 Jan 2013 16:51:57 +0000 (17:51 +0100)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 18 Jan 2013 01:48:43 +0000 (23:48 -0200)
commit6333934e27934a4d8d7dde729e965fab7f2c416b
tree025a9680c63027c68928bd8909bd7e59f65cff00
parente6b0e49b4ea7937a98b16f23d621244ee1a3e588
libkmod-module: Do not free the list in kmod_module_info_append

In error case, just return NULL and let the caller free the list.
libkmod/libkmod-module.c