Fixed example
[privoxy.git] / doc / pcrs.3
index 8fe90f9..732d537 100644 (file)
@@ -422,14 +422,15 @@ int main(int Argc, char **Argv)
    {
       printf("Exec error:  %s (%d).\\n", pcrs_strerror(err), err);
    }
-
-   /* Will tolerate NULL result */
-   printf("Result: *%s*\\n", result);
+   else
+   {
+      printf("Result: *%s*\\n", result);
+      free(result);
+   }
 
    pcrs_free_job(job);
-   if (result) free(result);
-
    return(err < 0);
+
 }
 
 .fi