Ticket #10140: 0001-Fix-mismatching-allocation-and-deallocation.patch

File 0001-Fix-mismatching-allocation-and-deallocation.patch, 1021 bytes (added by mt, 9 years ago)

Patch

  • src/add-ons/kernel/file_systems/nfs4/kernel_interface.cpp

    From c5aeb34bc94f56fdd17eefe4aeb143337a73d798 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Wed, 23 Oct 2013 06:39:12 +0900
    Subject: [PATCH] Fix mismatching allocation and deallocation
    
    ---
     .../kernel/file_systems/nfs4/kernel_interface.cpp  |    4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/add-ons/kernel/file_systems/nfs4/kernel_interface.cpp b/src/add-ons/kernel/file_systems/nfs4/kernel_interface.cpp
    index 2f26e42..3891627 100644
    a b ParseArguments(const char* _args, AddressResolver** address, char** _server,  
    9999        return B_NO_MEMORY;
    100100    *address = new AddressResolver(args);
    101101    if (*address == NULL) {
    102         delete *_server;
     102        free(*_server);
    103103        return B_NO_MEMORY;
    104104    }
    105105
    106106    *_path = strdup(path);
    107107    if (*_path == NULL) {
    108         delete *_server;
     108        free(*_server);
    109109        delete *address;
    110110        return B_NO_MEMORY;
    111111    }