Skip to content

hwinject.c: call LALCheckMemoryLeaks(), show message before clean exit

Karl Wette requested to merge ANU-CGA/lalsuite:hwinject-check-mem-leaks into master

Description

While attempting to debug #689 (closed) I noticed that lalpulsar_hwinject doesn't check for LAL memory leaks with LALCheckMemoryLeaks(). Adding such a check still doesn't find any leaks (at least from running make check) but nevertheless it seems prudent to add it.

Also print a message when lalpulsar_hwinject shuts down cleanly.

API Changes and Justification

Backwards Compatible Changes

  • This change does not modify any class/function/struct/type definitions in a public C header file or any Python class/function definitions
  • This change adds new classes/functions/structs/types to a public C header file or Python module

Backwards Incompatible Changes

  • This change modifies an existing class/function/struct/type definition in a public C header file or Python module
  • This change removes an existing class/function/struct/type from a public C header file or Python module

If any of the Backwards Incompatible check boxes are ticked please provide a justification why this change is necessary and why it needs to be done in a backwards incompatible way.

Review Status

N/A

Merge request reports

Loading