Skip to content

Commit

Permalink
replaced an old function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Luca van den Busch committed Jan 30, 2024
1 parent 3ad9d86 commit e8c3e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/histogram.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Histogram *hist_new(long num_bins) {
double *edges = calloc(num_bins + 1, sizeof(double));
if (edges == NULL) {
EMIT_ERR_MSG(MemoryError, "Histogram edges allocation failed");
binning_free(hist);
hist_free(hist);
return NULL;
}
double *sum_weight = calloc(num_bins, sizeof(double));
if (sum_weight == NULL) {
EMIT_ERR_MSG(MemoryError, "Histogram sum_weight allocation failed");
binning_free(hist);
hist_free(hist);
return NULL;
}

Expand Down

0 comments on commit e8c3e27

Please sign in to comment.