libsigrok/hardware/asix-sigma
Uwe Hermann 133a37bfba Use g_try_malloc/g_free/g_strdup consistently.
Avoid plain malloc()/free() in sr/srd, especially in the API calls.
Also avoid g_malloc*() in favor of g_try_malloc*().

Use g_strdup() instead of strdup() so that we can use g_free()
consistently everywhere.

Exceptions: Stuff that is allocated via other libs (not using glib),
should also be properly free'd using the respective free-ing function
(instead of g_free()). Examples: Stuff allocated by libusb, libftdi, etc.

Also, use sr_err() instead of sr_warn() for actual errors. sr_warn() is
meant for non-fatal/uncritical warnings.
2012-02-11 22:34:16 +01:00
..
Makefile.am sr/srd: Remove/fix non-applicable autotools stuff. 2011-12-30 11:14:24 +01:00
asix-sigma.c Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00
asix-sigma.h Project-wide consistent naming for #include guards. 2012-02-05 15:05:13 +01:00