mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +00:00
remove potential memory leak
This commit is contained in:
parent
1c387551f6
commit
ba0c310e64
@ -175,11 +175,9 @@ int LogGroup::parseLogHeaders()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
shutdown(fp_, strs, headerName);
|
||||
|
||||
shutdown(fp_, strs, headerName);
|
||||
}
|
||||
|
||||
delete[] strs;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -188,6 +186,5 @@ void shutdown (FILE* fp_, char** strs, char* headerName) {
|
||||
for(int i = 0; i < NUM_STR; i++) {
|
||||
delete[] strs[i];
|
||||
}
|
||||
delete[] strs;
|
||||
delete[] headerName;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user