Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/497
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed May 23, 2017
1 parent 948520b commit 89629b3
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@
2017-05-23 7.0.5-8 Cristy <quetzlzacatenango@image...>
* Improper allocation of memory for IM instances without threads (reference
https://github.com/ImageMagick/ImageMagick/issues/497).

2017-05-19 7.0.5-7 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.5-6, GIT revision 20078:7ce2d38:20170519.

Expand Down
2 changes: 1 addition & 1 deletion MagickCore/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ MagickExport MagickBooleanType CreateMagickThreadKey(MagickThreadKey *key,
**keys;

keys=(MagickThreadValue **) key;
*keys=(MagickThreadValue *) AcquireQuantumMemory(1,sizeof(*keys));
*keys=(MagickThreadValue *) AcquireQuantumMemory(1,sizeof(**keys));
if (*keys != (MagickThreadValue *) NULL)
{
(*keys)->number_threads=GetOpenMPMaximumThreads();
Expand Down

0 comments on commit 89629b3

Please sign in to comment.