diff options
-rw-r--r-- | tempfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tempfile.c b/tempfile.c index 3348ad59dd..e655e28477 100644 --- a/tempfile.c +++ b/tempfile.c @@ -128,7 +128,7 @@ static void activate_tempfile(struct tempfile *tempfile) static void deactivate_tempfile(struct tempfile *tempfile) { tempfile->active = 0; - strbuf_reset(&tempfile->filename); + strbuf_release(&tempfile->filename); } /* Make sure errno contains a meaningful value on error */ |