mod_netconf: BUGFIX: possible free of NULL pointer
diff --git a/src/mod_netconf.c b/src/mod_netconf.c
index 69e5700..2236fb2 100644
--- a/src/mod_netconf.c
+++ b/src/mod_netconf.c
@@ -630,9 +630,10 @@
/* positive reply */
json_object_object_add(reply, "type", json_object_new_int(REPLY_OK));
json_object_object_add(reply, "session", json_object_new_string(session_key));
+
+ free(session_key);
}
- free(session_key);
break;
case MSG_GET:
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, server, "Request: get-config (session %s)", session_key);