Commit f17dcf09 authored by Nicolas Trangez's avatar Nicolas Trangez Committed by Austin Seipp
Browse files

Fix memleak in hp2ps



Issue discovered by Coverity scan, CID 43167.
Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent 6ed7123d
...@@ -423,6 +423,8 @@ GetString(FILE *infp) ...@@ -423,6 +423,8 @@ GetString(FILE *infp)
stringbuffer[i] = '\0'; stringbuffer[i] = '\0';
thestring = copystring(stringbuffer); thestring = copystring(stringbuffer);
free(stringbuffer);
ASSERT(ch == '\"'); ASSERT(ch == '\"');
ch = getc(infp); /* skip the '\"' that terminates the string */ ch = getc(infp); /* skip the '\"' that terminates the string */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment