Skip to content

Commit

Permalink
Solved minor memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
pakozm committed Aug 26, 2013
1 parent adf5549 commit c7dc901
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion binding/formiga.lua
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ function formiga.initialize ()
os.execute("mkdir -p "..formiga.os.compose_dir(formiga.global_properties.build_dir,"bin"))

formiga.lua_dot_c_path = formiga.os.get_lua_dot_c_path()
formiga.lua_path=formiga.os.compose_dir(formiga.os.cwd,"lua","lua-5.1.2")
formiga.lua_path=formiga.os.compose_dir(formiga.os.cwd,"lua","lua-5.2.2")
end
end

Expand Down
3 changes: 1 addition & 2 deletions build_debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ luapkg{
extra_flags={
"-pg",
"-DNO_POOL",
"-fopenmp",
"-DNO_OMP",
},
extra_libs={
"-pg",
Expand All @@ -23,7 +23,6 @@ luapkg{
"-latlas",
"-L/opt/lib",
"-lgfortran",
"-fopenmp",
"-rdynamic",
"-llapack_atlas",
},
Expand Down
1 change: 1 addition & 0 deletions packages/ann/ann_base/c_src/maxpooling_component.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ namespace ANN {
if (error_input) DecRef(error_input);
if (output) DecRef(output);
if (error_output) DecRef(error_output);
if (argmax_raw_pos) DecRef(argmax_raw_pos);
delete[] kernel_dims;
delete[] kernel_step;
delete[] output_dims;
Expand Down

0 comments on commit c7dc901

Please sign in to comment.