Skip to content

Commit

Permalink
Add proper free()s for error case
Browse files Browse the repository at this point in the history
  • Loading branch information
hausdorff committed May 12, 2011
1 parent 0775f63 commit d436385
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libdiff/diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ int myers(struct diff_env *env)
}
}

// TODO: DECIDE WHETHER OR NOT WE WANT TO POSSIBLY SAVE THIS DATA
// FOR SEOMTHING ELSE???
ld__free(v_mem);
ld__free(v_hstry_mem);

// Shouldn't happen
return -1;
}
Expand Down

0 comments on commit d436385

Please sign in to comment.