Skip to content

Commit

Permalink
Fix mem leak in epg
Browse files Browse the repository at this point in the history
  • Loading branch information
scholand authored and uecker committed Oct 4, 2024
1 parent d1d623a commit d9d1962
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/epg.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ int main_epg(int argc, char* argv[argc])
}
}

long pos[DIMS] = {0};
long pos[DIMS] = { 0 };
md_copy_block(DIMS, pos, dims, signals, dims, out_signal, CFL_SIZE);

if (NULL != states_file)
Expand All @@ -240,6 +240,9 @@ int main_epg(int argc, char* argv[argc])
unmap_cfl(DIMS, dims_sigder, sigder);
unmap_cfl(DIMS, dims_statesder, statesder);

free(out_states);
free(out_statesder);

return 0;
}

0 comments on commit d9d1962

Please sign in to comment.