Merge branch 'features/yara' of git.clam.sourcefire.com:/var/lib/git/clamav-devel into features/yara

remotes/push_mirror/klin/altstr-yara
Kevin Lin 10 years ago
commit e3c6b8906d
  1. 8
      libclamav/yara_parser.c

@ -590,7 +590,7 @@ YR_STRING* yr_parser_reduce_string_declaration(
if (compiler->last_result != ERROR_SUCCESS)
goto _exit;
#endif
compiler->last_result = _yr_parser_write_string(
identifier,
string_flags,
@ -602,7 +602,7 @@ YR_STRING* yr_parser_reduce_string_declaration(
if (compiler->last_result != ERROR_SUCCESS)
goto _exit;
#if REAL_YARA
if (remainder_re != NULL)
{
string->g_flags |= STRING_GFLAGS_CHAIN_TAIL | STRING_GFLAGS_CHAIN_PART;
@ -655,7 +655,6 @@ YR_STRING* yr_parser_reduce_string_declaration(
}
else
{
#if REAL_YARA
compiler->last_result = _yr_parser_write_string(
identifier,
string_flags,
@ -667,7 +666,6 @@ YR_STRING* yr_parser_reduce_string_declaration(
if (compiler->last_result != ERROR_SUCCESS)
goto _exit;
#endif
}
@ -703,9 +701,11 @@ YR_STRING* yr_parser_reduce_string_declaration(
yywarning(yyscanner, message);
}
#endif
_exit:
#if REAL_YARA
if (re != NULL)
yr_re_destroy(re);
#endif

Loading…
Cancel
Save