X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=util.c;h=15994d1254fdfc456c43b28d09093120c57f8495;hp=27a5e07574cbc0f8e5a31c4df8d72f1cf28d1ace;hb=5154cadf4a143f6157a54aa4d2097dffe78c0f29;hpb=511e2123038c0df994ecadb1454d0869dc256698 diff --git a/util.c b/util.c index 27a5e07..15994d1 100644 --- a/util.c +++ b/util.c @@ -98,7 +98,7 @@ SRD_PRIV int py_dictitem_as_str(PyObject *py_obj, const char *key, ret = py_str_as_str(py_value, outstr); - return SRD_OK; + return ret; } /** @@ -156,7 +156,7 @@ err_out: /** * Convert a Python list of unicode strings to a NULL-terminated UTF8-encoded - * char * array. The caller must free each string when finished. + * char * array. The caller must g_free() each string when finished. * * @param py_strlist The list object. * @param outstr ptr to char ** storage to be filled in.