diff options
author | Bert Vermeulen <bert@biot.com> | 2012-01-30 01:23:35 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2012-01-30 01:23:35 +0100 |
commit | 6fff00eee1dd62477cd2708df480b985ef416a67 (patch) | |
tree | 5c43dcdc6fff424d441e71b1f77500f25ad55cf9 | |
parent | ad022d94ef9a32428fe44710e7eff311991fd9e6 (diff) | |
download | libsigrokdecode-6fff00eee1dd62477cd2708df480b985ef416a67.tar.gz libsigrokdecode-6fff00eee1dd62477cd2708df480b985ef416a67.zip |
srd: removed stray malloc()
-rw-r--r-- | decoder.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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); |