summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-19 12:08:10 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-19 12:08:10 +0100
commit3bb43f1260ec30e919d11a554ab4e0d29dd9312e (patch)
treeffc2371b461b3d8eb70c607c2e2e33684adbd752 /views
parent52eb7f4fb76ddf99dedf44332aae7af4df76ab36 (diff)
downloadpcitool-3bb43f1260ec30e919d11a554ab4e0d29dd9312e.tar.gz
pcitool-3bb43f1260ec30e919d11a554ab4e0d29dd9312e.tar.bz2
pcitool-3bb43f1260ec30e919d11a554ab4e0d29dd9312e.tar.xz
pcitool-3bb43f1260ec30e919d11a554ab4e0d29dd9312e.zip
1. Fix warnings in test_multithread app
2. Fix memory leak in transform view 3. Enchance test_pcipywrap with command line parsing
Diffstat (limited to 'views')
-rw-r--r--views/transform.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/transform.c b/views/transform.c
index eb3572a..02edddf 100644
--- a/views/transform.c
+++ b/views/transform.c
@@ -11,7 +11,6 @@
#include "py.h"
#include "error.h"
-
static int pcilib_transform_view_read(pcilib_t *ctx, pcilib_view_context_t *view_ctx, pcilib_register_value_t regval, pcilib_value_t *val) {
const pcilib_model_description_t *model_info = pcilib_get_model_description(ctx);
pcilib_transform_view_description_t *v = (pcilib_transform_view_description_t*)(model_info->views[view_ctx->view]);
@@ -58,6 +57,8 @@ void pcilib_transform_view_free_description (pcilib_t *ctx, pcilib_view_descript
if(v->module)
pcilib_py_free_script(ctx, v->module);
+
+ free(v);
}
pcilib_view_context_t * pcilib_transform_view_init(pcilib_t *ctx, const pcilib_view_description_t *desc)