Skip to content

Commit

Permalink
rls: reset vars to avoid double free in case of error
Browse files Browse the repository at this point in the history
(cherry picked from commit ceaafc6)
  • Loading branch information
miconda committed Aug 30, 2017
1 parent c1e0910 commit 127cafe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/rls/rls_db.c
Expand Up @@ -228,9 +228,11 @@ int delete_expired_subs_rlsdb( void )
}

pkg_free(rlsubs_did.s);
rlsubs_did.s = NULL;
}

rls_dbf.free_result(rls_db, result);
result = NULL;

if (rls_dbf.end_transaction)
{
Expand Down

0 comments on commit 127cafe

Please sign in to comment.