-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#399] Fix segmentation fault in
conf get
JSON format
The `conf get` implementation in JSON format was trying to extract the command status after having freed the JSON object. This commit changes the `pgagroal_json_print_and_free_json_object()` function making it returning the status code for the command contained (possibly) in the JSON object. In this way, it is possible to call the fuction in a way like: int status = pgagroal_json_print_and_free_json_object( json ); and get back the status leaving the function to free the object. Close #399
- Loading branch information
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters