summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-30 01:23:35 +0100
committerBert Vermeulen <bert@biot.com>2012-01-30 01:23:35 +0100
commit6fff00eee1dd62477cd2708df480b985ef416a67 (patch)
tree5c43dcdc6fff424d441e71b1f77500f25ad55cf9
parentad022d94ef9a32428fe44710e7eff311991fd9e6 (diff)
downloadlibsigrokdecode-6fff00eee1dd62477cd2708df480b985ef416a67.tar.gz
libsigrokdecode-6fff00eee1dd62477cd2708df480b985ef416a67.zip
srd: removed stray malloc()
-rw-r--r--decoder.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/decoder.c b/decoder.c
index 7480656..efb1f9a 100644
--- a/decoder.c
+++ b/decoder.c
@@ -351,9 +351,6 @@ int srd_load_all_decoders(void)
/* The decoder name is the PD directory name (e.g. "i2c"). */
decodername = g_strdup(direntry);
- if (!(dec = g_try_malloc(sizeof(struct srd_decoder))))
- return SRD_ERR_MALLOC;
-
if ((ret = srd_load_decoder(decodername, &dec)) == SRD_OK) {
/* Append it to the list of supported/loaded decoders. */
pd_list = g_slist_append(pd_list, dec);