diff options
author | Monsta <[email protected]> | 2014-12-09 11:54:06 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-10 02:37:54 +0100 |
commit | de5565a08db58d9ce48a3a3c74e21120965dd5f0 (patch) | |
tree | 2ff80e403d6d7ee8a6d86426ae210c4499395e85 /cut-n-paste/synctex | |
parent | cf55d726548132dc05115cd4accf0a4d5f1bf5ee (diff) | |
download | atril-de5565a08db58d9ce48a3a3c74e21120965dd5f0.tar.bz2 atril-de5565a08db58d9ce48a3a3c74e21120965dd5f0.tar.xz |
fix some more leaks and stuff
Diffstat (limited to 'cut-n-paste/synctex')
-rw-r--r-- | cut-n-paste/synctex/synctex_parser_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cut-n-paste/synctex/synctex_parser_utils.c b/cut-n-paste/synctex/synctex_parser_utils.c index 0aef5777..e21cfa90 100644 --- a/cut-n-paste/synctex/synctex_parser_utils.c +++ b/cut-n-paste/synctex/synctex_parser_utils.c @@ -255,6 +255,7 @@ char * _synctex_merge_strings(const char * first,...) { size_t len = strlen(temp); if(UINT_MAX-len<size) { _synctex_error("! _synctex_merge_strings: Capacity exceeded."); + va_end(arg); return NULL; } size+=len; @@ -275,6 +276,7 @@ char * _synctex_merge_strings(const char * first,...) { _synctex_error("! _synctex_merge_strings: Copy problem"); free(result); result = NULL; + va_end(arg); return NULL; } dest += size; |