daphne-eu / daphne

DAPHNE: An Open and Extensible System Infrastructure for Integrated Data Analysis Pipelines
Apache License 2.0
67 stars 62 forks source link

Refactor getLine() to avoid potential memory leak #770

Closed psomas closed 4 months ago

psomas commented 4 months ago

Daphne's getLine() calls libc's getline() with a NULL lineptr on each invocation. This results in getline() allocating a new buffer on each call, which, I think, never gets freed resulting in a memory leak.