diff options
Diffstat (limited to 'passgen.c')
-rw-r--r-- | passgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -213,7 +213,8 @@ cleanup: #ifdef USE_WINCRYPT CryptReleaseContext(win_rng, 0); #endif - if (grammar != grammar_buf) + /* TODO: this && kinda sucks, would like a better but still fast way */ + if (grammar != grammar_buf && grammar != argv[1]) free(grammar); if (password != password_buf) free(password); |