diff options
author | daniel <danieruru@gmail.com> | 2013-01-12 14:54:20 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-12 14:54:20 +0900 |
commit | 52cc0f0f558190e310c898ec7e616ed2b8306f02 (patch) | |
tree | 91aa189a6f6743a8e3154519b25ffa8e7377cef3 /vxi11_server.c | |
parent | 7c6b1548f8e3c24565d45837bbde961ece718f41 (diff) |
fix double free
Diffstat (limited to 'vxi11_server.c')
-rw-r--r-- | vxi11_server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vxi11_server.c b/vxi11_server.c index 2241ef3..520cb03 100644 --- a/vxi11_server.c +++ b/vxi11_server.c @@ -339,8 +339,10 @@ device_enable_srq_1_svc(Device_EnableSrqParms *argp, struct svc_req *rqstp) { if (!isValidLink(argp->lid)) result.error = ERR_INVALIDLINKINDENTIFIER; else { - if (inthandler != NULL) + if (inthandler != NULL) { free(inthandler); + inthandler = NULL; + } if (argp->enable) { if (argp->handle.handle_val != NULL) { inthandler = malloc(argp->handle.handle_len); |