diff options
Diffstat (limited to 'lpg/libqr')
-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); } |