Skip to content

Commit 4d35405

Browse files
committed
free mem leak
1 parent 68338db commit 4d35405

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/sockets/conversions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,7 @@ void to_zval_read_fd_array(const char *data, zval *zv, res_context *ctx)
14591459

14601460
if (!socket_import_file_descriptor(fd, sock)) {
14611461
do_to_zval_err(ctx, "error getting protocol descriptor %d: getsockopt() call failed with errno %d", fd, errno);
1462+
zval_ptr_dtor(&elem);
14621463
return;
14631464
}
14641465
} else {

0 commit comments

Comments
 (0)