Skip to content

Commit

Permalink
Merge pull request #105 from alexbiehl/patch-1
Browse files Browse the repository at this point in the history
Make rd_kafka_destroy a safe foreign call
  • Loading branch information
AlexeyRaga authored Aug 11, 2019
2 parents 40fef1e + 94a2898 commit 2d33327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kafka/Internal/RdKafka.chs
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ newRdKafkaTopicConfT = do
{enumToCInt `RdKafkaTypeT', `RdKafkaConfTPtr', id `CCharBufPointer', cIntConv `CSize'}
-> `RdKafkaTPtr' #}

foreign import ccall unsafe "rdkafka.h &rd_kafka_destroy"
foreign import ccall safe "rdkafka.h &rd_kafka_destroy"
rdKafkaDestroy :: FunPtr (Ptr RdKafkaT -> IO ())

newRdKafkaT :: RdKafkaTypeT -> RdKafkaConfTPtr -> IO (Either Text RdKafkaTPtr)
Expand Down

0 comments on commit 2d33327

Please sign in to comment.