Browse code

pdfng: fixed small memory leak

Kevin Lin authored on 2015/03/21 05:44:41
Showing 1 changed files
... ...
@@ -334,6 +334,7 @@ static char *pdf_finalize_string(struct pdf_struct *pdf, struct pdf_obj *obj, co
334 334
                 return NULL;
335 335
             }
336 336
             memcpy(wrkstr, output, outlen);
337
+            free(output);
337 338
             wrklen = outlen;
338 339
         } else {
339 340
             return NULL;