libsigrok/hardware/zeroplus-logic-cube
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
analyzer.c sr: Make more symbols private via static/SR_PRIV. 2012-02-02 21:46:10 +01:00
analyzer.h Project-wide consistent naming for #include guards. 2012-02-05 15:05:13 +01:00
gl_usb.c sr: zeroplus: Drop unused global variable. 2012-02-05 13:37:02 +01:00
gl_usb.h Project-wide consistent naming for #include guards. 2012-02-05 15:05:13 +01:00
zeroplus.c Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00