diff options
author | Leo Howell <leo@lwh.jp> | 2009-11-15 10:37:45 +0900 |
---|---|---|
committer | Leo Howell <leo@lwh.jp> | 2009-11-15 10:37:45 +0900 |
commit | c02f534047b35e3db4b300264a0abb790e9121af (patch) | |
tree | c5b3a588a3e4aeb4bdb0274c1c5d3ad1ffab8b7c /lpg | |
parent | 5d91255e986b6f1fb6205cc759ff5d43ccb3c96f (diff) | |
download | pdf-simple-sign-c02f534047b35e3db4b300264a0abb790e9121af.tar.gz pdf-simple-sign-c02f534047b35e3db4b300264a0abb790e9121af.tar.xz pdf-simple-sign-c02f534047b35e3db4b300264a0abb790e9121af.zip |
Fix memory leak in qrgen
Diffstat (limited to 'lpg')
-rw-r--r-- | lpg/libqr/qrgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lpg/libqr/qrgen.c b/lpg/libqr/qrgen.c index ad53125..b95db0a 100644 --- a/lpg/libqr/qrgen.c +++ b/lpg/libqr/qrgen.c @@ -41,10 +41,10 @@ struct qr_code * create(int version, } code = qr_code_create(data); + qr_free_data(data); if (!code) { perror("Failed to create code"); - qr_free_data(data); exit(2); } |