diff options
author | Samuel Lidén Borell <samuel@slbdata.se> | 2011-01-03 21:54:58 +0100 |
---|---|---|
committer | Samuel Lidén Borell <samuel@slbdata.se> | 2011-01-03 21:54:58 +0100 |
commit | 458e9dbda7c446286c5ed352a899beb2c1a8f06d (patch) | |
tree | cb6ad40c0b89db8af0c2c8d65a57ddbc36f6e730 /plugin | |
parent | fbdaf26d4c1d7c7bc0e85736a559205194314623 (diff) | |
download | fribid-458e9dbda7c446286c5ed352a899beb2c1a8f06d.tar.gz fribid-458e9dbda7c446286c5ed352a899beb2c1a8f06d.tar.bz2 fribid-458e9dbda7c446286c5ed352a899beb2c1a8f06d.zip |
Return NULL on errors in CreateRequest
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ipc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/ipc.c b/plugin/ipc.c index f7725af..58d3102 100644 --- a/plugin/ipc.c +++ b/plugin/ipc.c @@ -208,6 +208,11 @@ char *regutil_createRequest(Plugin *plugin) { plugin->lastError = waitReply(&pipeinfo); char *request = pipe_readString(pipeinfo.in); + if (plugin->lastError) { + free(request); + request = NULL; + } + closePipes(&pipeinfo); return request; } |