Commit 7e74349b authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Fixed file handle leak in OOM condition.

parent fd016fb3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -972,6 +972,7 @@ int Curl_cookie_output(struct CookieInfo *c, char *dumphere)
      format_ptr = get_netscape_format(co);
      if (format_ptr == NULL) {
        fprintf(out, "#\n# Fatal libcurl error\n");
        fclose(out);
        return 1;
      }
      fprintf(out, "%s\n", format_ptr);