Skip to content

Commit

Permalink
Fix memory leak in occuring on error condition in reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
auriocus committed Jun 14, 2014
1 parent e48398a commit 568202d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generic/reduction.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ int CMD(

default:

RESULTPRINTF(("Undefined function for datatype %s", NumArray_typename[info->type]));
return TCL_ERROR;
RESULTPRINTF(("Undefined function for datatype %s", NumArray_typename[info->type]));
ckfree(resultdims);
return TCL_ERROR;
}

ckfree(resultdims);
Expand Down

0 comments on commit 568202d

Please sign in to comment.