Skip to content

Commit

Permalink
sql_cacher: Minor optimization
Browse files Browse the repository at this point in the history
Optimize the number of buffer realloc operations when fetching cached
values.
  • Loading branch information
liviuchircu committed Sep 14, 2018
1 parent a223c82 commit 5516398
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/sql_cacher/sql_cacher.c
Expand Up @@ -1790,7 +1790,6 @@ int pv_get_sql_cached_value(struct sip_msg *msg, pv_param_t *param, pv_value_t
}

memcpy(valbuff.s, str_res.s, str_res.len);
valbuff.len = str_res.len;

if (free_str_res)
pkg_free(str_res.s);
Expand Down

0 comments on commit 5516398

Please sign in to comment.