commit | 8ebafde00ed0c682fed8c34ac5ba90160ea0bb30 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Sep 23 09:14:35 2011 +0300 |
committer | John W. Linville <linville@tuxdriver.com> | Tue Sep 27 14:34:10 2011 -0400 |
tree | cc14065f04168bf10f342b29767d6cfa44e16f9d | |
parent | 84b1bec6d716fc8c289e2530cab109a6e097455b [diff] |
NFC: use after free on error We returned a freed variable on some error paths when the intent was to return a NULL. Part of the reason this was missed was that the code was confusing because it had too many gotos so I removed them and simplified the flow a bit. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Lauro Ramos Venancio <lauro.venancio@openbossa.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>