Skip to content

Commit 9767c52

Browse files
author
JLague
committed
free buffer if error when executing modulefile
1 parent e9faa94 commit 9767c52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/analysis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ int _mii_analysis_lmod(const char* path, char*** bins_out, int* num_bins_out) {
208208
int num_paths;
209209
if(_mii_analysis_lua_run(lua_state, buffer, &bin_paths, &num_paths)) {
210210
mii_error("Error occured when executing %s, skipping", path);
211+
free(buffer);
211212
return -1;
212213
}
213214

0 commit comments

Comments
 (0)