summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-05 14:49:58 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-05 15:00:29 +0100
commit4664d02fe2be11babf729e829d67162e0ef7dcb8 (patch)
tree362ac90d90b5c6af5da271124d4e40ffc943622f
parentb7bc6212bc5c71a9717e46f8a93467340e37abc6 (diff)
epp - fix tchnical leak for coverity
its technically a leak.. but epp will give up a nd error out anyway here so... didn't matter. fix CID 1402655
-rw-r--r--src/bin/edje/epp/cpplib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c
index d7bde9de68..75befb5345 100644
--- a/src/bin/edje/epp/cpplib.c
+++ b/src/bin/edje/epp/cpplib.c
@@ -7115,7 +7115,6 @@ read_token_list(cpp_reader * pfile, int *error_flag)
7115 memcpy(temp->name, (char *)(pfile->token_buffer + name_written), 7115 memcpy(temp->name, (char *)(pfile->token_buffer + name_written),
7116 length); 7116 length);
7117 temp->name[length] = 0; 7117 temp->name[length] = 0;
7118 temp->next = token_ptrs;
7119 token_ptrs = temp; 7118 token_ptrs = temp;
7120 temp->length = length; 7119 temp->length = length;
7121 7120
@@ -7125,8 +7124,10 @@ read_token_list(cpp_reader * pfile, int *error_flag)
7125 { /* FIXME */ 7124 { /* FIXME */
7126 cpp_error(pfile, 7125 cpp_error(pfile,
7127 "unterminated token sequence following `#' operator"); 7126 "unterminated token sequence following `#' operator");
7127 free(temp);
7128 return 0; 7128 return 0;
7129 } 7129 }
7130 temp->next = token_ptrs;
7130 } 7131 }
7131 7132
7132 /* We accumulated the names in reverse order. 7133 /* We accumulated the names in reverse order.