Skip to content

Commit

Permalink
Mem allocation cleanup in command/verify module.
Browse files Browse the repository at this point in the history
Move the temp mem context out of verifyJobCallback() into verifyBackup() and verifyArchive(). This makes it clearer that verifyJobCallback() allocates no memory and reduces mem usage when both verifyBackup() and verifyArchive() are called.

Update verifyErrorMsg() to return zero-terminated strings to save on allocations. The output of this function is used when formatting strings so this is also simpler. Do a similar thing in verifyRender().

Also fix a minor leak in verifyInfoFile().
  • Loading branch information
dwsteele committed Apr 26, 2022
1 parent 3f7c8bc commit fa6c68c
Showing 1 changed file with 359 additions and 347 deletions.

0 comments on commit fa6c68c

Please sign in to comment.