aboutsummaryrefslogtreecommitdiff
path: root/src/cl-utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-11-04 16:22:04 +0100
committerThomas White <taw@physics.org>2015-11-04 16:22:04 +0100
commita6f9739a906d88e94685c3531e78cf8b71dd75a2 (patch)
tree418857dfa4601be2414604e29c799812b96b525e /src/cl-utils.c
parent938b9627b3f0c5665f1bf21b67f6ed3b277f1621 (diff)
pattern_sim: Fix obvious stupid bug
Diffstat (limited to 'src/cl-utils.c')
-rw-r--r--src/cl-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl-utils.c b/src/cl-utils.c
index 5f3be316..dc0a2713 100644
--- a/src/cl-utils.c
+++ b/src/cl-utils.c
@@ -253,8 +253,8 @@ cl_program load_program(const char *filename, cl_context ctx,
memcpy(source2+il, insert_stuff, strlen(insert_stuff)+1);
memcpy(source2+il+strlen(insert_stuff),
source+il+11, strlen(source+il+11)+1);
- source = source2;
free(source);
+ source = source2;
}
}