소스 검색

[process] small leak fixed

Exilon 4 년 전
부모
커밋
47c0700261
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      Quick.Process.pas

+ 5 - 1
Quick.Process.pas

@@ -514,7 +514,11 @@ begin
       pclose(Handle);
     end;
   except
-    on E: Exception do Exception.CreateFmt('RunCommand: %s',[e.Message]);
+    on E: Exception do
+    begin
+      Result.Free;
+      Exception.CreateFmt('RunCommand: %s',[e.Message]);
+    end;
   end;
 end;