summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2011-12-28 13:40:23 +0100
committerBert Vermeulen <bert@biot.com>2011-12-28 13:40:23 +0100
commit8b4bbd2a0bcfdc2e186b345de087f23b9c904080 (patch)
tree20a1cf3992d1c9d766b120a4327c4fd46c255439 /decoder.c
parent5f802ec6473029e89d2db9cbd71cf0ce86a1b653 (diff)
downloadlibsigrokdecode-8b4bbd2a0bcfdc2e186b345de087f23b9c904080.tar.gz
libsigrokdecode-8b4bbd2a0bcfdc2e186b345de087f23b9c904080.zip
better python memory management
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/decoder.c b/decoder.c
index 5d719d3..9f951c1 100644
--- a/decoder.c
+++ b/decoder.c
@@ -96,30 +96,30 @@ int srd_load_decoder(const char *name, struct srd_decoder **dec)
if (!(d = malloc(sizeof(struct srd_decoder))))
return SRD_ERR_MALLOC;
- if ((r = h_str(py_res, py_mod, "id", &(d->id))) < 0)
+ if ((r = h_str(py_res, "id", &(d->id))) < 0)
return r;
- if ((r = h_str(py_res, py_mod, "name", &(d->name))) < 0)
+ if ((r = h_str(py_res, "name", &(d->name))) < 0)
return r;
- if ((r = h_str(py_res, py_mod, "longname",
+ if ((r = h_str(py_res, "longname",
&(d->longname))) < 0)
return r;
- if ((r = h_str(py_res, py_mod, "desc", &(d->desc))) < 0)
+ if ((r = h_str(py_res, "desc", &(d->desc))) < 0)
return r;
- if ((r = h_str(py_res, py_mod, "longdesc",
+ if ((r = h_str(py_res, "longdesc",
&(d->longdesc))) < 0)
return r;
- if ((r = h_str(py_res, py_mod, "author", &(d->author))) < 0)
+ if ((r = h_str(py_res, "author", &(d->author))) < 0)
return r;
- if ((r = h_str(py_res, py_mod, "email", &(d->email))) < 0)
+ if ((r = h_str(py_res, "email", &(d->email))) < 0)
return r;
- if ((r = h_str(py_res, py_mod, "license", &(d->license))) < 0)
+ if ((r = h_str(py_res, "license", &(d->license))) < 0)
return r;
d->py_mod = py_mod;