forked from drath/libratbag
89559b37206a92ebdbc9435a24ccd4f286f18ab5
If we goto err early then both dev and drv_data will contain garbage values. We free one and dereference the other. Let's null them and add proper checks. Signed-off-by: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
/*!@mainpage
libratbag
libratbag is a configuration library for gaming mice. It provides a generic way to access the various features exposed by these mice and abstracts away hardware-specific and kernel-specific quirks.
License
libratbag is licensed under the MIT license.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: [...]
See the COPYING file for the full license information.
*/
Description
Languages
C
84.2%
Python
12.3%
Meson
1.5%
Shell
1.3%
Roff
0.5%
Other
0.2%