Skip to content

Commit

Permalink
free value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang_laptop committed Dec 15, 2017
1 parent 651a772 commit 589596d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be-memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ char *be_memcached_getuser(void *handle, const char *username, const char *passw
if (rc == MEMCACHED_SUCCESS) {
pwhash = strdup(value);
}
free(value);

free(value);
return (pwhash);
}

Expand Down Expand Up @@ -205,6 +205,7 @@ int be_memcached_aclcheck(void *handle, const char *clientid, const char *userna
answer = 1;
}

free(value);
return answer;
}
#endif /* BE_MEMCACHED */

0 comments on commit 589596d

Please sign in to comment.