aboutsummaryrefslogtreecommitdiff
path: root/lpg
diff options
context:
space:
mode:
authorLeo Howell <leo@lwh.jp>2009-11-15 10:37:45 +0900
committerLeo Howell <leo@lwh.jp>2009-11-15 10:37:45 +0900
commitc02f534047b35e3db4b300264a0abb790e9121af (patch)
treec5b3a588a3e4aeb4bdb0274c1c5d3ad1ffab8b7c /lpg
parent5d91255e986b6f1fb6205cc759ff5d43ccb3c96f (diff)
downloadpdf-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.c2
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);
}