diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-10-17 17:43:23 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-10-17 17:43:23 +0000 |
| commit | 7663b4e9885ff2de00681fb9487abf0a54f83a9d (patch) | |
| tree | 3aca15d67b6863042f1168f16787925c2d579b8c /src/libuemf | |
| parent | cppcheck: printf variable identifier (diff) | |
| download | inkscape-7663b4e9885ff2de00681fb9487abf0a54f83a9d.tar.gz inkscape-7663b4e9885ff2de00681fb9487abf0a54f83a9d.zip | |
fix wrong memory deallocation
(bzr r12699)
Diffstat (limited to 'src/libuemf')
| -rw-r--r-- | src/libuemf/uemf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libuemf/uemf.c b/src/libuemf/uemf.c index b06990dbd..220c88545 100644 --- a/src/libuemf/uemf.c +++ b/src/libuemf/uemf.c @@ -1371,8 +1371,8 @@ int emf_htable_create( } ehtl->stack = malloc(initsize * sizeof(uint32_t)); if(!ehtl->stack){ - free(ehtl); free(ehtl->table); + free(ehtl); return(5); } memset(ehtl->table , 0, initsize * sizeof(uint32_t)); // zero all slots in the table |
