Skip to content

Commit

Permalink
A memory leak bug fixed. (Thanks to @win32asm)
Browse files Browse the repository at this point in the history
  • Loading branch information
fukuchi committed Jun 21, 2014
1 parent 43131e1 commit 91f87d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2014.06.22 Kentaro FUKUCHI <kentaro@fukuchi.org>
* qrencode.c:
- A memory leak bug has been fixed. (Thanks to @win32asm)

2014.02.09 Kentaro FUKUCHI <kentaro@fukuchi.org>
* .travis.yaml:
- Configuration file for Travis CI. (Thanks to Danil Dörrhöfer)
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ Viona - bug fix patch for string splitting
Daniel Dörrhöfer - RLE option
Shigeyuki Hirai, Paul Janssens, wangsai, Gavan Fantom, Matthew Baker, Rob Ryan,
Fred Steinhaeuser, Terry Burton, chisj, vlad417, Petr, Hassan Hajji,
Emmanuel Blot, ßlúèÇhîp
Emmanuel Blot, ßlúèÇhîp, win32asm
- bug report / suggestion
3 changes: 3 additions & 0 deletions qrencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,9 @@ __STATIC QRcode *QRcode_encodeMask(QRinput *input, int mask)
goto EXIT;
}
qrcode = QRcode_new(version, width, masked);
if(qrcode == NULL) {
free(masked);
}

EXIT:
QRraw_free(raw);
Expand Down

0 comments on commit 91f87d4

Please sign in to comment.