[arrayfire] 56/408: BUFIX: Remove memory leak in af::copy()
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit 8aae20bc492f1949b34f3ee3ed3de1fc9758a7e2
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Sun Jun 28 00:38:48 2015 -0400
BUFIX: Remove memory leak in af::copy()
---
src/api/c/assign.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/c/assign.cpp b/src/api/c/assign.cpp
index 386b18d..d1ac902 100644
--- a/src/api/c/assign.cpp
+++ b/src/api/c/assign.cpp
@@ -118,7 +118,7 @@ af_err af_assign_seq(af_array *out,
af_array res;
if (*out != lhs) AF_CHECK(af_copy_array(&res, lhs));
- else res = retain(lhs);
+ else res = lhs;
try {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list