diff options
author | Thomas White <taw@physics.org> | 2024-09-16 16:20:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-09-16 16:20:16 +0200 |
commit | 106c5ae47bccae48e290738232d7e794236adebb (patch) | |
tree | 70939c823936ec975c40b866123b06e1c15834aa /libcrystfel | |
parent | 3f0aaaadd792b6e6ec3aec0b44ef79c1ae3bf99a (diff) |
Avoid small memory leak with integration_method("none", ...)
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/integration.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index 6d37116b..9ad22960 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -1811,6 +1811,8 @@ IntegrationMethod integration_method(const char *str, int *err) meth = INTEGRATION_DEFAULTS_PROF2D; } else if ( strcmp(methods[i], "none") == 0 ) { + cffree(methods[i]); + cffree(methods); return INTEGRATION_NONE; } else if ( strcmp(methods[i], "sat") == 0 ) { |