remove potential memory leak

This commit is contained in:
Scott Fennell 2018-10-02 10:58:53 -05:00
parent 1c387551f6
commit ba0c310e64

View File

@ -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;
}