Browse Source

fix: uncomment free

Kévin Dunglas 3 years ago
parent
commit
0d1ff2c438
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frankenphp.go

+ 1 - 1
frankenphp.go

@@ -109,7 +109,7 @@ func ExecuteScript(responseWriter http.ResponseWriter, request *http.Request) er
 	var cAuthUser, cAuthPassword *C.char
 	if authPassword != "" {
 		cAuthPassword = C.CString(authPassword)
-		//defer C.free(unsafe.Pointer(cAuthPassword))
+		defer C.free(unsafe.Pointer(cAuthPassword))
 	}
 
 	if authUser := fc.Env["REMOTE_USER"]; authUser != "" {