Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix crash with -S by not freeing control->suffix.

  • Loading branch information...
commit 1aa0c0fdd0d7c1ed285a9bf2ae96c18a1f2f82d6 1 parent 2755236
@ckolivas authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  main.c
View
2  main.c
@@ -286,7 +286,6 @@ int main(int argc, char *argv[])
if (unlikely(STDOUT))
failure("Cannot specify an output filename when outputting to stdout\n");
control->outname = optarg;
- free(control->suffix);
control->suffix = "";
break;
case 'O':
@@ -314,7 +313,6 @@ int main(int argc, char *argv[])
failure("Specified output filename already, can't specify an extension.\n");
if (unlikely(STDOUT))
failure("Cannot specify a filename suffix when outputting to stdout\n");
- free(control->suffix);
control->suffix = optarg;
break;
case 't':
Please sign in to comment.
Something went wrong with that request. Please try again.