From 52cc0f0f558190e310c898ec7e616ed2b8306f02 Mon Sep 17 00:00:00 2001 From: daniel Date: Sat, 12 Jan 2013 14:54:20 +0900 Subject: fix double free --- vxi11_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vxi11_server.c') 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); -- cgit