diff options
-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); |