Skip to content

Commit

Permalink
Minor memory leak and object access fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanehuntley committed May 4, 2012
1 parent 2932e3a commit 3d44f26
Show file tree
Hide file tree
Showing 4 changed files with 380 additions and 174 deletions.
4 changes: 4 additions & 0 deletions libyara/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ long long evaluate(TERM* term, EVALUATION_CONTEXT* context)
{
return ( term_variable->variable->string != NULL && *term_variable->variable->string != '\0');
}
else if (term_variable->variable->type == VARIABLE_TYPE_BOOLEAN)
{
return term_variable->variable->boolean;
}
else
{
return term_variable->variable->integer;
Expand Down
Loading

0 comments on commit 3d44f26

Please sign in to comment.