add proper error handling to loaded_modules()
authorAndy Grover <andy@groveronline.com>
Mon, 19 Mar 2012 04:49:07 +0000 (21:49 -0700)
committerAndy Grover <andy@groveronline.com>
Mon, 19 Mar 2012 04:54:03 +0000 (21:54 -0700)
commit35addc47c3fe56398ef16458c2c09b763e24ada9
tree06121babe3906e52847d6dd1704ab14978b3f0c6
parent3841c6fef8dbc2e0685cd300a0dad44f8898d433
add proper error handling to loaded_modules()

We need to check the result of basically all Py* calls and cleanup
properly if they fail.

Signed-off-by: Andy Grover <andy@groveronline.com>
libkmod.c