commit | 13cb1f4bb3a03bf42eba8cbe52f2b83c11774807 | [log] [tgz] |
---|---|---|
author | Miguel Pineiro Jr <mpj@pineiro.cc> | Mon Aug 29 15:41:30 2022 -0400 |
committer | Miguel Pineiro Jr <mpj@pineiro.cc> | Tue Aug 30 18:46:32 2022 -0400 |
tree | 4bb25d9f7dc08f7118d1dc911215619342776a57 | |
parent | d62c43899fd25fdc4883a32857d0f157aa2b6324 [diff] |
Fix leak of qstring result in setclvar Test: valgrind --leak-check=full ./a.out '{exit}' x=y </dev/null
diff --git a/lib.c b/lib.c index af23554..ebe296f 100644 --- a/lib.c +++ b/lib.c
@@ -313,6 +313,7 @@ q->tval |= NUM; } DPRINTF("command line set %s to |%s|\n", s, p); + free(p); *e = '='; }