Skip to content

Fix Group A headers and Group B memory bugs#2

Merged
felixdollack merged 2 commits into
mainfrom
fix-group-b-memory
May 15, 2026
Merged

Fix Group A headers and Group B memory bugs#2
felixdollack merged 2 commits into
mainfrom
fix-group-b-memory

Conversation

@felixdollack

Copy link
Copy Markdown
Owner

Summary

Fixes for Group A (missing headers) and Group B (memory bugs) from ISSUES_PLAN.md.

Group A - Missing C++ Headers (Issue #84)

  • Add missing #include <cassert> to fix compile failures on MSVC/MinGW

Group B - Memory Bugs (Issues #74, #55)

  • Fix deletefree() in Morlet::getWavelet() for malloc-allocated memory (undefined behavior)
  • Fix memory leak: free lastscalemem with _aligned_free() (Windows) / free() (POSIX) in convolve()
  • Fix indentation in convolve() else branch

Files Changed

  • src/fcwt/fcwt.cpp - header fix and memory leak fixes

Co-Authored-By: Oz oz-agent@warp.dev

felixdollack and others added 2 commits May 15, 2026 14:10
…#84)

- Fix delete→free in Morlet::getWavelet() for malloc-allocated memory
- Fix memory leak: free lastscalemem with _aligned_free/_aligned_malloc
  on Windows, free/aligned_alloc on POSIX
- Add missing <cassert> include (issue #84)
- Also fix indentation in convolve() else branch

Co-Authored-By: Oz <oz-agent@warp.dev>
The create_FFT_optimization_plan method expects a string flag
(e.g., "FFTW_ESTIMATE") not an integer. This fixes the TypeError.

Co-Authored-By: Oz <oz-agent@warp.dev>
@felixdollack felixdollack merged commit 12abffc into main May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant