8000 Fix a memory leak in discard · jrtkcoder/phpredis@17b1f42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17b1f42

Browse files
Fix a memory leak in discard
1 parent fcf52b8 commit 17b1f42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,7 @@ PHP_REDIS_API void redis_send_discard(INTERNAL_FUNCTION_PARAMETERS,
17561756
}
17571757

17581758
if(response_len == 3 && strncmp(response, "+OK", 3) == 0) {
1759+
efree(response);
17591760
RETURN_TRUE;
17601761
}
17611762
RETURN_FALSE;

0 commit comments

Comments
 (0)
0